diff --git a/src/pike_threadlib.h b/src/pike_threadlib.h
index 681b676443b83aac913dbc339cd2d9b97f8d5030..29a1dc2a0e1b4c0890203a400179b30ce64ea5c6 100644
--- a/src/pike_threadlib.h
+++ b/src/pike_threadlib.h
@@ -2,7 +2,7 @@
 || This file is part of Pike. For copyright information see COPYRIGHT.
 || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
 || for more information.
-|| $Id: pike_threadlib.h,v 1.40 2003/04/01 22:34:31 mast Exp $
+|| $Id: pike_threadlib.h,v 1.41 2003/04/02 00:32:20 mast Exp $
 */
 
 #ifndef PIKE_THREADLIB_H
@@ -17,9 +17,10 @@
 
 #ifndef CONFIGURE_TEST
 #include "machine.h"
-#include "main.h"
 #endif
 
+#include "main.h"
+
 /* Needed for the sigset_t typedef, which is needed for
  * the pthread_sigsetmask() prototype on Solaris 2.x.
  */