summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1e2be88)
raw | patch | inline | side by side (parent: 1e2be88)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 23 Jun 2007 07:02:13 +0000 (09:02 +0200) | ||
committer | Florian 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 | patch | blob | history | |
src/utils_dns.c | patch | blob | history |
diff --git a/configure.in b/configure.in
index 1b158ec7a4befe1864a14b2682115b3e6477917c..b3e591d86d6402a564b2dcb3459b09ddac40e0cb 100644 (file)
--- a/configure.in
+++ b/configure.in
# 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>
diff --git a/src/utils_dns.c b/src/utils_dns.c
index 0943727536e92e56b384a0b7ebc9542464957724..5834fa13df1ad3f5b8afe539f73fc15100c61b2c 100644 (file)
--- a/src/utils_dns.c
+++ b/src/utils_dns.c
#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