From: Neal Norwitz Date: Sat, 22 Mar 2003 16:35:37 +0000 (+0000) Subject: Include Python.h first which defines _XOPEN_SOURCE X-Git-Tag: v2.3c1~1387 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df5126df56cff1aae3a2a9bf61352efff40c915c;p=python Include Python.h first which defines _XOPEN_SOURCE which allows the file to compile and removes a warning about _XOPEN_SOURCE being redefined (works on AIX 4.3 and 5.1 at least). --- diff --git a/Python/dynload_aix.c b/Python/dynload_aix.c index fd380aed0e..03ecc0724a 100644 --- a/Python/dynload_aix.c +++ b/Python/dynload_aix.c @@ -1,15 +1,15 @@ /* Support for dynamic loading of extension modules */ +#include "Python.h" +#include "importdl.h" + #include /* for isdigit() */ #include /* for global errno */ #include /* for strerror() */ #include /* for malloc(), free() */ #include -#include "Python.h" -#include "importdl.h" - #ifdef AIX_GENUINE_CPLUSPLUS #include "/usr/lpp/xlC/include/load.h"