]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
FreeBSD 7 does not support IFT_INFINIBAND
authorroy@uberlaptop.marples.name <roy@uberlaptop.marples.name>
Wed, 21 Mar 2012 19:11:07 +0000 (19:11 +0000)
committerroy@uberlaptop.marples.name <roy@uberlaptop.marples.name>
Wed, 21 Mar 2012 19:11:07 +0000 (19:11 +0000)
net.c

diff --git a/net.c b/net.c
index c69d00979912622758380df0230fc84e7ca602d4..14322b190a6ff99626c8fc0e2307bf06f91d12cf 100644 (file)
--- a/net.c
+++ b/net.c
@@ -449,9 +449,11 @@ discover_interfaces(int argc, char * const *argv)
                        case IFT_IEEE1394:
                                ifp->family = ARPHRD_IEEE1394;
                                break;
+#ifdef IFT_INFINIBAND
                        case IFT_INFINIBAND:
                                ifp->family = ARPHRD_INFINIBAND;
                                break;
+#endif
                        }
                        ifp->hwlen = sdl->sdl_alen;
 #ifndef CLLADDR