diff --git a/src/dedicated/i_threads.c b/src/dedicated/i_threads.c
index 0e0b0bbe35deee217d9da47c64dbeb084a9edf9e..f8d9bc87a1b51dd3e287ab6f45ba993f82ebc53b 100644
--- a/src/dedicated/i_threads.c
+++ b/src/dedicated/i_threads.c
@@ -15,7 +15,6 @@
 
 #include "../i_threads.h"
 #include "../doomdef.h"
-#include "../doomtype.h"
 
 typedef struct thread_s thread_t;
 
diff --git a/src/i_threads.h b/src/i_threads.h
index 079b1877107b8e7b2446e7cbfc7f888248ec25ac..097d1accc13a0d2a9d282c8b215900e57a6f9b4e 100644
--- a/src/i_threads.h
+++ b/src/i_threads.h
@@ -12,6 +12,8 @@
 #ifndef I_THREADS_H
 #define I_THREADS_H
 
+#include "doomtype.h"
+
 typedef void (*I_thread_fn)(void *userdata);
 
 typedef void * I_mutex;