From: Segev Finer Date: Tue, 11 Jul 2017 22:16:28 +0000 (+0300) Subject: [2.7] bpo-30797: Avoid _GNU_SOURCE redefined warning in xmlparse.c (GH-2670) (#2672) X-Git-Tag: v2.7.14rc1~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=884c4ca33ab84b9fc57338cf59f79e0436d3da43;p=python [2.7] bpo-30797: Avoid _GNU_SOURCE redefined warning in xmlparse.c (GH-2670) (#2672) * [2.7] Avoid _GNU_SOURCE redefined warning in xmlparse.c (GH-2670) (cherry picked from commit f52325598e7a9683787d76a42009fc16790a0089) * [2.7] Avoid _GNU_SOURCE redefined warning in xmlparse.c (GH-2670). (cherry picked from commit f52325598e7a9683787d76a42009fc16790a0089) --- diff --git a/Modules/expat/xmlparse.c b/Modules/expat/xmlparse.c index 76f078e250..daec151e23 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 #include /* memset(), memcpy() */