From: Guido van Rossum Date: Fri, 10 Apr 1998 23:45:14 +0000 (+0000) Subject: Move #include to before osdefs.h (Donn Cave). X-Git-Tag: v1.5.1~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cecadc469b2bbf09757c8ab0503f09de60954687;p=python Move #include to before osdefs.h (Donn Cave). --- 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 +#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 -#endif - #if defined(__NetBSD__) && (NetBSD < 199712) #define DYNAMIC_LINK #define USE_SHLIB