From: Steven Chamberlain <stevenc@debian.org>
Date: Sat, 16 Jul 2016 23:52:50 +0100
Subject: Use _GNU_SOURCE on GNU/kFreeBSD

Define _GNU_SOURCE not only on GNU/Hurd, but also other glibc-based
platforms including GNU/kFreeBSD.

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=826061#10
---
 vendor/nginx-1.15.8/src/os/unix/ngx_posix_config.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/vendor/nginx-1.15.8/src/os/unix/ngx_posix_config.h b/vendor/nginx-1.15.8/src/os/unix/ngx_posix_config.h
index 2a8c413..03f7e0a 100644
--- a/vendor/nginx-1.15.8/src/os/unix/ngx_posix_config.h
+++ b/vendor/nginx-1.15.8/src/os/unix/ngx_posix_config.h
@@ -21,10 +21,13 @@
 #endif
 
 
-#if (NGX_GNU_HURD)
+#if defined(__GLIBC__)
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE             /* accept4() */
 #endif
+#endif
+
+#if (NGX_GNU_HURD)
 #define _FILE_OFFSET_BITS       64
 #endif
 
