From cf247359d5b7082044eea1fa94b5211a172b1ff6 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 10 Dec 2018 11:30:21 +0100 Subject: [PATCH] bpo-31374: Include pyconfig.h earlier in expat (GH-11064) Include ealier in Modules/expat/xmltok.c to define properly _POSIX_C_SOURCE. Python defines _POSIX_C_SOURCE as 200809L, whereas (included indirectly by ) defines _POSIX_C_SOURCE as 199506L. --- Modules/expat/xmltok.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/expat/xmltok.c b/Modules/expat/xmltok.c index 6b415d83972..fa35de71324 100644 --- a/Modules/expat/xmltok.c +++ b/Modules/expat/xmltok.c @@ -30,6 +30,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. */ +#include #include #include /* memcpy */