]> granicus.if.org Git - python/commitdiff
Move #include <sys/param.h> to before osdefs.h (Donn Cave).
authorGuido van Rossum <guido@python.org>
Fri, 10 Apr 1998 23:45:14 +0000 (23:45 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 10 Apr 1998 23:45:14 +0000 (23:45 +0000)
Python/importdl.c

index 157257ff9ec73649c2565ba352a59893eef1852f..a0869907d284b37b2dc1a03363090856597ceccb 100644 (file)
@@ -33,6 +33,11 @@ PERFORMANCE OF THIS SOFTWARE.
 /* If no dynamic linking is supported, this file still generates some code! */
 
 #include "Python.h"
+
+#ifdef HAVE_SYS_PARAM_H
+/* osdefs.h will define MAXPATHLEN if it's not already defined. */
+#include <sys/param.h>
+#endif
 #include "osdefs.h"
 #include "importdl.h"
 
@@ -89,10 +94,6 @@ typedef int (* APIENTRY dl_funcptr)();
 #define LONG_EXT ".dll"
 #endif
 
-#ifdef HAVE_SYS_PARAM_H
-#include <sys/param.h>
-#endif
-
 #if defined(__NetBSD__) && (NetBSD < 199712)
 #define DYNAMIC_LINK
 #define USE_SHLIB