diff --git a/src/runner.c b/src/runner.c
index 51801a779481a8ce0500d8c5f3f0b20d7ed79faf..c275225e3a4bb881545571110795a5beb17bf6e8 100644
--- a/src/runner.c
+++ b/src/runner.c
@@ -60,6 +60,7 @@
 #include "sort_part.h"
 #include "sourceterms.h"
 #include "space.h"
+#include "space_getsid.h"
 #include "stars.h"
 #include "task.h"
 #include "timers.h"
diff --git a/src/runner_doiact.h b/src/runner_doiact.h
index 4081e67b467cc14553973333865c8ef46c2fd99b..2987d205e5005d4618c087bfe7f18a0b3c12fef5 100644
--- a/src/runner_doiact.h
+++ b/src/runner_doiact.h
@@ -125,9 +125,6 @@
 #define _TIMER_DOPAIR_SUBSET(f) PASTE(timer_dopair_subset, f)
 #define TIMER_DOPAIR_SUBSET _TIMER_DOPAIR_SUBSET(FUNCTION)
 
-/* Local headers. */
-#include "space_getsid.h"
-
 /**
  * @brief Compute the interactions between a cell pair (non-symmetric case).
  *