diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-12-10 03:35:18 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-10 03:35:18 -0800 |
commit | 7215e4857123afa8577f63c1024bcd1889a96305 (patch) | |
tree | 221504488b80ae08fdff742641b53c6b39f57b86 /Modules | |
parent | bad41cefef6625807198a813d9dec2c08d59dc60 (diff) | |
download | cpython-git-7215e4857123afa8577f63c1024bcd1889a96305.tar.gz |
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.
(cherry picked from commit cf247359d5b7082044eea1fa94b5211a172b1ff6)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
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 6b415d8397..fa35de7132 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 */ |