summaryrefslogtreecommitdiff
path: root/ext/posix
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2018-09-17 17:51:00 +0200
committerNikita Popov <nikita.ppv@gmail.com>2018-09-17 17:51:00 +0200
commitac03b15e3c173b58b892cb6e904173870aa1b81b (patch)
tree1407de7da1382a7790d9dc8751063153edbdb539 /ext/posix
parent819ae353a79ee79e20fe93e4fd53e96097c9f89f (diff)
downloadphp-git-ac03b15e3c173b58b892cb6e904173870aa1b81b.tar.gz
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).
Diffstat (limited to 'ext/posix')
-rw-r--r--ext/posix/posix.c5
1 files changed, 0 insertions, 5 deletions
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 <sys/resource.h>
-
-#if defined(_GNU_SOURCE) && !defined(__USE_GNU)
-# define __USE_GNU
-#endif
-
#include <sys/utsname.h>
#include <sys/types.h>
#include <sys/stat.h>