[Python-checkins] bpo-31374: Include pyconfig.h earlier in expat (GH-11064)

Miss Islington (bot) webhook-mailer at python.org
Mon Dec 10 06:35:22 EST 2018


https://github.com/python/cpython/commit/7215e4857123afa8577f63c1024bcd1889a96305
commit: 7215e4857123afa8577f63c1024bcd1889a96305
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-12-10T03:35:18-08:00
summary:

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 at redhat.com>

files:
M Modules/expat/xmltok.c

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 <pyconfig.h>
 #include <stddef.h>
 #include <string.h>  /* memcpy */
 



More information about the Python-checkins mailing list