]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Add qnx* to OS detection so we can pass the __EXT define and stay using
authorRoy Marples <roy@marples.name>
Tue, 23 Dec 2014 09:46:02 +0000 (09:46 +0000)
committerRoy Marples <roy@marples.name>
Tue, 23 Dec 2014 09:46:02 +0000 (09:46 +0000)
--cstd=c99.

configure

index 8bad7d8f54858eccd5f2226107526a2eb6f44237..f61d3ba475f4425e8a50706506e48e621c74b562 100755 (executable)
--- a/configure
+++ b/configure
@@ -361,6 +361,10 @@ if [ -n "$FORK" -a "$FORK" != yes -a "$FORK" != true ]; then
 fi
 
 case "$OS" in
+kfreebsd*)
+       echo "CPPFLAGS+=        -D_GNU_SOURCE" >>$CONFIG_MK
+       echo "DHCPCD_SRCS+=     if-bsd.c" >>$CONFIG_MK
+       ;;
 linux*)
        echo "CPPFLAGS+=        -D_BSD_SOURCE -D_XOPEN_SOURCE=700" >>$CONFIG_MK
        # glibc-2.20
@@ -370,8 +374,8 @@ linux*)
        echo "#include <asm/types.h> /* fix broken headers */" >>$CONFIG_H
        echo "#include <linux/rtnetlink.h>" >>$CONFIG_H
        ;;
-kfreebsd*)
-       echo "CPPFLAGS+=        -D_GNU_SOURCE" >>$CONFIG_MK
+qnx*)
+       echo "CPPFLAGS+=        -D__EXT" >>$CONFIG_MK
        echo "DHCPCD_SRCS+=     if-bsd.c" >>$CONFIG_MK
        ;;
 sunos*)