From: Roy Marples Date: Tue, 23 Dec 2014 09:46:02 +0000 (+0000) Subject: Add qnx* to OS detection so we can pass the __EXT define and stay using X-Git-Tag: v6.7.0~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2360efb8cfdb7379aa6beac4840d87978041b0a1;p=thirdparty%2Fdhcpcd.git Add qnx* to OS detection so we can pass the __EXT define and stay using --cstd=c99. --- 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 /* fix broken headers */" >>$CONFIG_H echo "#include " >>$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*)