import of dnsmasq-2.48.tar.gz
diff --git a/src/bpf.c b/src/bpf.c
index c5bcd6f..abde78c 100644
--- a/src/bpf.c
+++ b/src/bpf.c
@@ -130,7 +130,7 @@
#endif
-#if defined(HAVE_BSD_NETWORK)
+#if defined(HAVE_BSD_NETWORK) && defined(HAVE_DHCP)
#include <net/bpf.h>
void init_bpf(void)
@@ -175,7 +175,7 @@
/* Only know how to do ethernet on *BSD */
if (mess->htype != ARPHRD_ETHER || mess->hlen != ETHER_ADDR_LEN)
{
- my_syslog(LOG_WARNING, _("DHCP request for unsupported hardware type (%d) received on %s"),
+ my_syslog(MS_DHCP | LOG_WARNING, _("DHCP request for unsupported hardware type (%d) received on %s"),
mess->htype, ifr->ifr_name);
return;
}