]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Avoid _GNU_SOURCE redefined warning in xmlparse.c (#2670)
authorSegev Finer <segev208@gmail.com>
Tue, 11 Jul 2017 19:47:03 +0000 (22:47 +0300)
committerNed Deily <nad@python.org>
Sun, 16 Jul 2017 08:51:00 +0000 (04:51 -0400)
(cherry picked from commit f52325598e7a9683787d76a42009fc16790a0089)

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() */