summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNed Deily <nad@python.org>2017-07-07 05:31:43 (GMT)
committerGitHub <noreply@github.com>2017-07-07 05:31:43 (GMT)
commit05b72ede95521b2d897cb4c7b034139b5437c592 (patch)
treeef013c068700cca2ed07eb398062dcdd982e5f8c /Modules
parentdf0f99329843c10701ffaefbd3948ac698c12220 (diff)
downloadcpython-05b72ede95521b2d897cb4c7b034139b5437c592.zip
cpython-05b72ede95521b2d897cb4c7b034139b5437c592.tar.gz
cpython-05b72ede95521b2d897cb4c7b034139b5437c592.tar.bz2
bpo-30797, bpo-30694: Avoid _GNU_SOURCE redefined warning in xmlparse.c (#2615)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/expat/xmlparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/expat/xmlparse.c b/Modules/expat/xmlparse.c
index 76f078e..daec151 100644
--- a/Modules/expat/xmlparse.c
+++ b/Modules/expat/xmlparse.c
@@ -4,7 +4,7 @@
77fea421d361dca90041d0040ecf1dca651167fadf2af79e990e35168d70d933 (2.2.1+)
*/
-#define _GNU_SOURCE /* syscall prototype */
+#define _GNU_SOURCE 1 /* syscall prototype */
#include <stddef.h>
#include <string.h> /* memset(), memcpy() */