]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-31374: Include pyconfig.h earlier in expat (GH-11064)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 10 Dec 2018 11:35:18 +0000 (03:35 -0800)
committerGitHub <noreply@github.com>
Mon, 10 Dec 2018 11:35:18 +0000 (03:35 -0800)
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>
Modules/expat/xmltok.c

index 6b415d83972ca605a97c27eb36f75cdab37165c1..fa35de71324cebea13f1cbf309bb8e2931bf3956 100644 (file)
@@ -30,6 +30,7 @@
    USE OR OTHER DEALINGS IN THE SOFTWARE.
 */
 
+#include <pyconfig.h>
 #include <stddef.h>
 #include <string.h>  /* memcpy */