Commit 7bbf7b02 authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub

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 cf247359)
Co-authored-by: default avatarVictor Stinner <vstinner@redhat.com>
parent cecf313d
......@@ -30,6 +30,7 @@
USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <pyconfig.h>
#include <stddef.h>
#include <string.h> /* memcpy */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment