Skip to content
Snippets Groups Projects

d/p/0003-define_gnu_source-on-other-glibc-based-platforms.patch update

Merged Jan Mojžíš requested to merge (removed):master into master
2 files
+ 12
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -4,14 +4,18 @@ Subject: Use _GNU_SOURCE on GNU/kFreeBSD
Define _GNU_SOURCE not only on GNU/Hurd, but also other glibc-based
platforms including GNU/kFreeBSD.
--- a/src/os/unix/ngx_posix_config.h
+++ b/src/os/unix/ngx_posix_config.h
modified by jan.mojzis@gmail.com
Index: nginx/src/os/unix/ngx_posix_config.h
===================================================================
--- nginx.orig/src/os/unix/ngx_posix_config.h
+++ nginx/src/os/unix/ngx_posix_config.h
@@ -21,10 +21,13 @@
#endif
-#if (NGX_GNU_HURD)
+#if defined(__GLIBC__)
+#if defined(NGX_GNU_HURD) || defined(__GLIBC__)
#ifndef _GNU_SOURCE
#define _GNU_SOURCE /* accept4() */
#endif
Loading