diff --git a/src/post_modules/GTK/pgtk.c.head b/src/post_modules/GTK/pgtk.c.head
index 43f9543935c805e34961b728cda41215e56d27e5..c8c11cc431f997541b497009a5efe8f25d3b3742 100644
--- a/src/post_modules/GTK/pgtk.c.head
+++ b/src/post_modules/GTK/pgtk.c.head
@@ -3,8 +3,6 @@
 #define GTK_NO_CHECK_CASTS
 
 #include "config.h"
-#include <gtk/gtk.h>
-#include <gdk/gdkx.h>
 #include <program.h>
 #include <pike_types.h>
 #include <interpret.h>
@@ -18,6 +16,8 @@
 #include <threads.h>
 #include <builtin_functions.h>
 #include <operators.h>
+#include <gtk/gtk.h>
+#include <gdk/gdkx.h>
 #include "prototypes.h"
 #ifdef HAVE_SIGNAL_H
 #include <signal.h>