Mercurial > cpython-lru_cache-weakref
diff Python/importdl.c @ 7988:0263d3324f0b legacy-trunk
Move #include <sys/param.h> to before osdefs.h (Donn Cave).
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 10 Apr 1998 23:45:14 +0000 |
| parents | c8745d205122 |
| children | 5cce81e23349 |
line wrap: on
line diff
--- a/Python/importdl.c Fri Apr 10 23:44:32 1998 +0000 +++ b/Python/importdl.c Fri Apr 10 23:45:14 1998 +0000 @@ -33,6 +33,11 @@ /* 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 @@ #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
