]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Detect kFreeBSD correctly.
authorRoy Marples <roy@marples.name>
Thu, 31 Dec 2015 17:46:05 +0000 (17:46 +0000)
committerRoy Marples <roy@marples.name>
Thu, 31 Dec 2015 17:46:05 +0000 (17:46 +0000)
Thanks to Christoph Egger for providing a temporary build host.
Partial fix for [1987e7b3a3].

configure

index 6a03f61fd5d40c18cce9a93657164e58ca32a370..b6ebd5f809fa89e49c0100f9e95b3750bd161d10 100755 (executable)
--- a/configure
+++ b/configure
@@ -221,6 +221,9 @@ if [ -z "$OS" ]; then
        case "$VENDOR" in
        linux*|kfreebsd*) OS=$VENDOR; VENDOR= ;;
        esac
+       case "$REST" in
+       gnu/kfreebsd*)          OS="kfreebsd"; VENDOR= ;;
+       esac
        # Special case
        case "$OS" in
        gnu*) OS=hurd;; # No HURD support as yet
@@ -304,7 +307,7 @@ else
        ALLOW_USR_LIBS=true
 fi
 case "$OS" in
-linux*|sunos*) ;;
+linux*|sunos*|kfreebsd*) ;;
 *)
        if ! [ -x "$LDELF" -o -x /libexec/ld-elf.so.[0-9]* ] && \
            [ -z "$PREFIX" -o "$PREFIX" = "/" ]
@@ -375,6 +378,9 @@ freebsd*|kfreebsd*)
        esac
        echo "DHCPCD_SRCS+=     if-bsd.c" >>$CONFIG_MK
        # Whacky includes needed to buck the trend
+       case "$OS" in
+       kfreebsd*)      echo "#include          <inttypes.h>" >>$CONFIG_H;
+       esac
        echo "#include          <net/if.h>" >>$CONFIG_H
        echo "#include          <net/if_var.h>" >>$CONFIG_H
        ;;