]> granicus.if.org Git - python/commitdiff
bpo-30797, bpo-30694: Avoid _GNU_SOURCE redefined warning in xmlparse.c (#2615)
authorNed Deily <nad@python.org>
Fri, 7 Jul 2017 05:31:43 +0000 (01:31 -0400)
committerGitHub <noreply@github.com>
Fri, 7 Jul 2017 05:31:43 +0000 (01:31 -0400)
Modules/expat/xmlparse.c

index 76f078e2505f90bbf78a66df14e3a7fec0f46540..daec151e232f1c3185dab946a2e48f98cd09232f 100644 (file)
@@ -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() */