diff options
| author | Roy Marples <roy@marples.name> | 2016-09-02 08:09:47 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2016-09-02 08:09:47 +0000 |
| commit | c62f687eb8edf0eafca1aeed8c9241ee4a3f4797 (patch) | |
| tree | a358b0dcd749864b4a4dc1aee33b34a783e2c997 /configure | |
| parent | 92b920ad2c781cc96e182ae557d953b1298b6685 (diff) | |
| download | dhcpcd-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-x | configure | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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 |
