summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-12-10 22:42:12 +0000
committerRoy Marples <roy@marples.name>2014-12-10 22:42:12 +0000
commitc6c54d9e963f256ccb1c071d74a2d8d7ec3adb66 (patch)
tree4c0c9b8ae763a4e046307cbe7daf6c2c698e14bc /configure
parent4f138b1db16f996ff2c22f1f12372074df01b17f (diff)
downloaddhcpcd-c6c54d9e963f256ccb1c071d74a2d8d7ec3adb66.tar.xz
Include linux/rtnetlink.h in config.h rather than each file that needs it.
Detect RTM_NEWNEIGH rather than force a define based on __linux__.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index fc62a5b6..f250d018 100755
--- a/configure
+++ b/configure
@@ -366,6 +366,9 @@ linux*)
# glibc-2.20
echo "CPPFLAGS+= -D_DEFAULT_SOURCE" >>$CONFIG_MK
echo "DHCPCD_SRCS+= if-linux.c" >>$CONFIG_MK
+ # for RTM_NEWADDR and friends
+ 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