Code

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 1b158ec7a4befe1864a14b2682115b3e6477917c..b3e591d86d6402a564b2dcb3459b09ddac40e0cb 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 0943727536e92e56b384a0b7ebc9542464957724..5834fa13df1ad3f5b8afe539f73fc15100c61b2c 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