﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
2366	build on other glibc-based platforms e.g. GNU/kFreeBSD	jan.mojzis@…		"Hello,
can You please include simple patch which defines _GNU_SOURCE
not only on GNU/Hurd, but also other glibc-based
platforms including GNU/kFreeBSD.
It fixes build on these platforms.

Patch here:

{{{
--- 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(NGX_GNU_HURD) || defined(__GLIBC__)
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE             /* accept4() */
 #endif
+#endif
+
+#if (NGX_GNU_HURD)
 #define _FILE_OFFSET_BITS       64
 #endif
}}}
"	defect	closed	minor		nginx-core	1.22.x	duplicate		jan.mojzis@…		nginx version: nginx/1.22.0
