$NetBSD$

--- config.h.in.orig	2006-12-06 14:49:48.000000000 +0000
+++ config.h.in
@@ -10,14 +10,14 @@
 #define HAVE_SYS_STAT_H 0
 #define HAVE_MODE_T 0
 
-#if HAVE_SYS_STAT_H
-#include <sys/stat.h>
-#endif
-
 #if HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif
 
+#if HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
+
 #if HAVE_DMALLOC_H
 #include <dmalloc.h>
 #endif
