From ac03b15e3c173b58b892cb6e904173870aa1b81b Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 17 Sep 2018 17:51:00 +0200 Subject: [PATCH] Remove __USE_GNU defines This is an internal glibc macro, it should not be necessary to use it if we already define _GNU_SOURCE (we do through AC_USE_SYSTEM_EXTENSIONS). Needing to use __USE_GNU generally indicates an inclusion order problem (libc header included before config.h). --- Zend/zend_alloc.c | 3 --- ext/posix/posix.c | 5 ----- ext/sysvmsg/sysvmsg.c | 5 ----- 3 files changed, 13 deletions(-) diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 95727d126b..94ae805a64 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -88,9 +88,6 @@ # ifndef _GNU_SOURCE # define _GNU_SOURCE # endif -# ifndef __USE_GNU -# define __USE_GNU -# endif # endif # include # ifndef MAP_ANON diff --git a/ext/posix/posix.c b/ext/posix/posix.c index 5a2f352e41..5952a4d05b 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -34,11 +34,6 @@ #endif #include - -#if defined(_GNU_SOURCE) && !defined(__USE_GNU) -# define __USE_GNU -#endif - #include #include #include diff --git a/ext/sysvmsg/sysvmsg.c b/ext/sysvmsg/sysvmsg.c index 416d5c4594..a00b73ee8a 100644 --- a/ext/sysvmsg/sysvmsg.c +++ b/ext/sysvmsg/sysvmsg.c @@ -27,11 +27,6 @@ #include "ext/standard/php_var.h" #include "zend_smart_str.h" -#ifndef __USE_GNU -/* we want to use mtype instead of __mtype */ -#define __USE_GNU -#endif - #include #include #include -- 2.40.0