From e40574f34ddd759275de29bb67e25a8c6a433506 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sat, 23 Jun 2007 09:02:13 +0200 Subject: [PATCH] dns plugin: Check for `net/ppp_defs.h' and include it before `net/if_ppp.h' if it exists. This hopefully solves build problems under OpenBSD. --- configure.in | 7 ++++++- src/utils_dns.c | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 1b158ec7..b3e591d8 100644 --- a/configure.in +++ b/configure.in @@ -332,7 +332,12 @@ AC_CHECK_HEADERS(net/if_arp.h, [], [], # include #endif ]) -AC_CHECK_HEADERS(net/if_ppp.h) +AC_CHECK_HEADERS(net/ppp_defs.h) +AC_CHECK_HEADERS(net/if_ppp.h, [], [], +[#if HAVE_NET_PPP_DEFS_H +# include +#endif +]) AC_CHECK_HEADERS(netinet/if_ether.h, [], [], [#if HAVE_STDINT_H # include diff --git a/src/utils_dns.c b/src/utils_dns.c index 09437275..5834fa13 100644 --- a/src/utils_dns.c +++ b/src/utils_dns.c @@ -63,6 +63,9 @@ #if HAVE_NETINET_IF_ETHER_H # include #endif +#if HAVE_NET_PPP_DEFS_H +# include +#endif #if HAVE_NET_IF_PPP_H # include #endif -- 2.11.0