mirror of
https://github.com/curl/curl.git
synced 2026-07-28 21:53:06 +03:00
build: enable _GNU_SOURCE on GNU/Hurd
Unconditionally enable _GNU_SOURCE when building on GNU/Hurd; this way it is possible to properly use/rely on GNU extensions e.g. accept4(), memrchr(), and the GNU strerror_r(). Closes #17975
This commit is contained in:
parent
960fb49245
commit
bed83d9d33
2 changed files with 2 additions and 2 deletions
|
|
@ -574,7 +574,7 @@ AM_CONDITIONAL(BUILD_UNITTESTS, test x$supports_unittests = xyes)
|
|||
# In order to detect support of sendmmsg() and accept4(), we need to escape the POSIX
|
||||
# jail by defining _GNU_SOURCE or <sys/socket.h> will not expose it.
|
||||
case $host_os in
|
||||
*linux*|cygwin*|msys*)
|
||||
*linux*|cygwin*|msys*|gnu*)
|
||||
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue