]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Conditionally include ifaddrs.h if USE_BPF_RECEIVE is defined. 'struct
authorDavid Hankins <dhankins@isc.org>
Sat, 19 May 2007 16:14:48 +0000 (16:14 +0000)
committerDavid Hankins <dhankins@isc.org>
Sat, 19 May 2007 16:14:48 +0000 (16:14 +0000)
ifaddr' is only used if this method is being used for receive, and not all
systems have ifaddrs.h.  [ISC Bugs #16865-p1].

common/bpf.c

index eb104b40ef88ec91229c4d79d3812aed07925fa3..0ba61e8e28d9aae51ae9572b1018fd8cb22526c3 100644 (file)
@@ -34,7 +34,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: bpf.c,v 1.53 2007/05/18 17:21:46 dhankins Exp $ Copyright (c) 2004 Internet Systems Consortium.  All rights reserved.\n";
+"$Id: bpf.c,v 1.54 2007/05/19 16:14:48 dhankins Exp $ Copyright (c) 2004 Internet Systems Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -59,7 +59,9 @@ static char copyright[] =
 #include "includes/netinet/if_ether.h"
 #endif
 
+#ifdef USE_BPF_RECEIVE
 #include <ifaddrs.h>
+#endif
 
 /* Reinitializes the specified interface after an address change.   This
    is not required for packet-filter APIs. */