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

Victor Stinner webhook-mailer at python.org
Mon Dec 10 05:30:24 EST 2018


https://github.com/python/cpython/commit/cf247359d5b7082044eea1fa94b5211a172b1ff6
commit: cf247359d5b7082044eea1fa94b5211a172b1ff6
branch: master
author: Victor Stinner <vstinner at redhat.com>
committer: GitHub <noreply at github.com>
date: 2018-12-10T11:30:21+01: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.

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