diff options
| author | Guido van Rossum <guido@python.org> | 1998-04-10 23:45:14 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1998-04-10 23:45:14 +0000 |
| commit | 9490996373e6d305f4efe45edab4f13246db92bc (patch) | |
| tree | ed578f3fdb1e7a2dc284389b4fc239df41702d84 /Python/importdl.c | |
| parent | a869314d75e32d93ba4d2119dd32a97e4ae00443 (diff) | |
| download | cpython-9490996373e6d305f4efe45edab4f13246db92bc.tar.gz | |
Move #include <sys/param.h> to before osdefs.h (Donn Cave).
Diffstat (limited to 'Python/importdl.c')
| -rw-r--r-- | Python/importdl.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Python/importdl.c b/Python/importdl.c index 157257ff9e..a0869907d2 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 |
