mirror of
https://github.com/python/cpython.git
synced 2024-11-27 20:04:41 +08:00
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).
This commit is contained in:
parent
24fcd23eae
commit
df5126df56
@ -1,15 +1,15 @@
|
|||||||
|
|
||||||
/* Support for dynamic loading of extension modules */
|
/* Support for dynamic loading of extension modules */
|
||||||
|
|
||||||
|
#include "Python.h"
|
||||||
|
#include "importdl.h"
|
||||||
|
|
||||||
#include <ctype.h> /* for isdigit() */
|
#include <ctype.h> /* for isdigit() */
|
||||||
#include <errno.h> /* for global errno */
|
#include <errno.h> /* for global errno */
|
||||||
#include <string.h> /* for strerror() */
|
#include <string.h> /* for strerror() */
|
||||||
#include <stdlib.h> /* for malloc(), free() */
|
#include <stdlib.h> /* for malloc(), free() */
|
||||||
#include <sys/ldr.h>
|
#include <sys/ldr.h>
|
||||||
|
|
||||||
#include "Python.h"
|
|
||||||
#include "importdl.h"
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef AIX_GENUINE_CPLUSPLUS
|
#ifdef AIX_GENUINE_CPLUSPLUS
|
||||||
#include "/usr/lpp/xlC/include/load.h"
|
#include "/usr/lpp/xlC/include/load.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user