From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 10 Dec 2018 11:35:18 +0000 (-0800) Subject: bpo-31374: Include pyconfig.h earlier in expat (GH-11064) X-Git-Tag: v3.6.8rc1~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7215e4857123afa8577f63c1024bcd1889a96305;p=thirdparty%2FPython%2Fcpython.git 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. (cherry picked from commit cf247359d5b7082044eea1fa94b5211a172b1ff6) Co-authored-by: Victor Stinner --- diff --git a/Modules/expat/xmltok.c b/Modules/expat/xmltok.c index 6b415d83972c..fa35de71324c 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 */