Skip to content

Commit df5126d

Browse files
committed
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).
1 parent 24fcd23 commit df5126d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Python/dynload_aix.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11

22
/* Support for dynamic loading of extension modules */
33

4+
#include "Python.h"
5+
#include "importdl.h"
6+
47
#include <ctype.h> /* for isdigit() */
58
#include <errno.h> /* for global errno */
69
#include <string.h> /* for strerror() */
710
#include <stdlib.h> /* for malloc(), free() */
811
#include <sys/ldr.h>
912

10-
#include "Python.h"
11-
#include "importdl.h"
12-
1313

1414
#ifdef AIX_GENUINE_CPLUSPLUS
1515
#include "/usr/lpp/xlC/include/load.h"

0 commit comments

Comments
 (0)