summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-10 23:45:14 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-10 23:45:14 (GMT)
commitcecadc469b2bbf09757c8ab0503f09de60954687 (patch)
tree00e8b696006bb90a2400dd9a77a9fed2a80f0a80
parent8766a7797e4092aac751e08ac4356072755a2c7b (diff)
downloadcpython-cecadc469b2bbf09757c8ab0503f09de60954687.zip
cpython-cecadc469b2bbf09757c8ab0503f09de60954687.tar.gz
cpython-cecadc469b2bbf09757c8ab0503f09de60954687.tar.bz2
Move #include <sys/param.h> to before osdefs.h (Donn Cave).
-rw-r--r--Python/importdl.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/Python/importdl.c b/Python/importdl.c
index 157257f..a086990 100644
--- a/Python/importdl.c
+++ b/Python/importdl.c
@@ -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