diff options
| author | Roy Marples <roy@marples.name> | 2014-12-23 09:46:02 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2014-12-23 09:46:02 +0000 |
| commit | 2360efb8cfdb7379aa6beac4840d87978041b0a1 (patch) | |
| tree | 906b8a96d5ac86d82452e38c76545a656dbbba9d /configure | |
| parent | 71b002d46eb76e8ee3c6c1e6cf4d16a2da2aecff (diff) | |
| download | dhcpcd-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-x | configure | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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*) |
