From: David Hankins Date: Sat, 19 May 2007 16:14:48 +0000 (+0000) Subject: Conditionally include ifaddrs.h if USE_BPF_RECEIVE is defined. 'struct X-Git-Tag: v4_0_0a1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1045c25b5653fe74ac1d675ff5023205776a30c;p=thirdparty%2Fdhcp.git Conditionally include ifaddrs.h if USE_BPF_RECEIVE is defined. 'struct ifaddr' is only used if this method is being used for receive, and not all systems have ifaddrs.h. [ISC Bugs #16865-p1]. --- diff --git a/common/bpf.c b/common/bpf.c index eb104b40e..0ba61e8e2 100644 --- a/common/bpf.c +++ b/common/bpf.c @@ -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 +#endif /* Reinitializes the specified interface after an address change. This is not required for packet-filter APIs. */