]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Add _DEFAULT_SOURCE #define to linux builds so glibc-2.20 stops bitching about _BSD_S...
authorRoy Marples <roy@marples.name>
Thu, 18 Sep 2014 09:06:51 +0000 (09:06 +0000)
committerRoy Marples <roy@marples.name>
Thu, 18 Sep 2014 09:06:51 +0000 (09:06 +0000)
configure

index eb793c52a593ed6450548a4d64fba78468a7d6a0..5a8c876896d492d9babf4925764e4132c3519759 100755 (executable)
--- a/configure
+++ b/configure
@@ -382,6 +382,8 @@ fi
 case "$OS" in
 linux*)
        echo "CPPFLAGS+=        -D_BSD_SOURCE -D_XOPEN_SOURCE=700" >>$CONFIG_MK
+       # glibc-2.20
+       echo "CPPFLAGS+=        -D_DEFAULT_SOURCE" >>$CONFIG_MK
        echo "DHCPCD_SRCS+=     if-linux.c" >>$CONFIG_MK
        ;;
 kfreebsd*)