diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-12-10 10:30:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-10 10:30:21 (GMT) |
commit | cf247359d5b7082044eea1fa94b5211a172b1ff6 (patch) | |
tree | 1d9dc8cfeb82a056c69569ab81aaf3c23a1d9e2b /Modules | |
parent | 2eb6ad8578fa9d764c21a92acd8e054e3202ad19 (diff) | |
download | cpython-cf247359d5b7082044eea1fa94b5211a172b1ff6.zip cpython-cf247359d5b7082044eea1fa94b5211a172b1ff6.tar.gz cpython-cf247359d5b7082044eea1fa94b5211a172b1ff6.tar.bz2 |
bpo-31374: Include pyconfig.h earlier in expat (GH-11064)
Include <pyconfig.h> ealier in Modules/expat/xmltok.c to define
properly _POSIX_C_SOURCE. Python defines _POSIX_C_SOURCE as 200809L,
whereas <features.h> (included indirectly by <string.h>) defines
_POSIX_C_SOURCE as 199506L.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/expat/xmltok.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/expat/xmltok.c b/Modules/expat/xmltok.c index 6b415d8..fa35de7 100644 --- a/Modules/expat/xmltok.c +++ b/Modules/expat/xmltok.c @@ -30,6 +30,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#include <pyconfig.h> #include <stddef.h> #include <string.h> /* memcpy */ |