summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-09-02 08:09:47 +0000
committerRoy Marples <roy@marples.name>2016-09-02 08:09:47 +0000
commitc62f687eb8edf0eafca1aeed8c9241ee4a3f4797 (patch)
treea358b0dcd749864b4a4dc1aee33b34a783e2c997 /configure
parent92b920ad2c781cc96e182ae557d953b1298b6685 (diff)
downloaddhcpcd-c62f687eb8edf0eafca1aeed8c9241ee4a3f4797.tar.xz
Rework the recvmsg_realloc function to handle flags.
Commit also includes mistakenly added ifam_pid patch for BSD. It does no harm being here, even though no BSD supports this yet.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17
1 files changed, 16 insertions, 1 deletions
diff --git a/configure b/configure
index 0f22c869..a6ed2f29 100755
--- a/configure
+++ b/configure
@@ -506,7 +506,22 @@ EOF
echo "no"
fi
rm -f _IN6_ADDR_GEN_MODE_NONE.c _IN6_ADDR_GEN_MODE_NONE
-
+else
+ printf "Testing for ifam_pid ... "
+ cat <<EOF >_ifam_pid.c
+#include <net/if.h>
+int main(void) {
+ struct ifa_msghdr ifam = { };
+ return (int)ifam.ifam_pid;
+}
+EOF
+ if $XCC _ifam_pid.c -o _ifam_pid 2>&3; then
+ echo "yes"
+ echo "#define HAVE_IFAM_PID" >>$CONFIG_H
+ else
+ echo "no"
+ fi
+ rm -f _ifam_pid.c _ifam_pid
fi
abort=false