aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-03-19 13:46:59 +0100
committerAnton Khirnov <anton@khirnov.net>2020-03-19 13:48:47 +0100
commit61f0aecf884538c39e0a1bd79f00e9835fd77a35 (patch)
tree279d916ddbb21c7d5429cf8c3b731f6ede9b7c6e
parent3d9372b791949edb058317161c32f614615e22cf (diff)
configure: define _DEFAULT_SOURCE
Necessary for SO_PASSCRED.
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 50a52cf4..81fde581 100755
--- a/configure
+++ b/configure
@@ -2288,7 +2288,7 @@ if check_cpp_condition features.h "defined __UCLIBC__"; then
add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
elif check_cpp_condition features.h "defined __GLIBC__"; then
libc_type=glibc
- add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
+ add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE
# MinGW headers can be installed on Cygwin, so check for newlib first.
elif check_cpp_condition newlib.h "defined _NEWLIB_VERSION"; then
libc_type=newlib