summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-12-23 09:46:02 +0000
committerRoy Marples <roy@marples.name>2014-12-23 09:46:02 +0000
commit2360efb8cfdb7379aa6beac4840d87978041b0a1 (patch)
tree906b8a96d5ac86d82452e38c76545a656dbbba9d /configure
parent71b002d46eb76e8ee3c6c1e6cf4d16a2da2aecff (diff)
downloaddhcpcd-2360efb8cfdb7379aa6beac4840d87978041b0a1.tar.xz
Add qnx* to OS detection so we can pass the __EXT define and stay using
--cstd=c99.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 6 insertions, 2 deletions
diff --git a/configure b/configure
index 8bad7d8f..f61d3ba4 100755
--- 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*)