dns plugin: Check for `net/ppp_defs.h' and include it before `net/if_ppp.h' if it...
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 23 Jun 2007 07:02:13 +0000 (09:02 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 23 Jun 2007 07:02:13 +0000 (09:02 +0200)
This hopefully solves build problems under OpenBSD.

configure.in
src/utils_dns.c

index 1b158ec..b3e591d 100644 (file)
@@ -332,7 +332,12 @@ AC_CHECK_HEADERS(net/if_arp.h, [], [],
 # include <sys/socket.h>
 #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 <net/ppp_defs.h>
+#endif
+])
 AC_CHECK_HEADERS(netinet/if_ether.h, [], [],
 [#if HAVE_STDINT_H
 # include <stdint.h>
index 0943727..5834fa1 100644 (file)
@@ -63,6 +63,9 @@
 #if HAVE_NETINET_IF_ETHER_H
 # include <netinet/if_ether.h>
 #endif
+#if HAVE_NET_PPP_DEFS_H
+# include <net/ppp_defs.h>
+#endif
 #if HAVE_NET_IF_PPP_H
 # include <net/if_ppp.h>
 #endif