openbsd-ports/devel/ORBit2/patches/patch-configure_in

24 lines
815 B
Plaintext
Raw Normal View History

$OpenBSD: patch-configure_in,v 1.1 2003/10/07 05:47:57 marcm Exp $
--- configure.in.orig 2003-08-11 02:15:36.000000000 -0700
+++ configure.in 2003-08-20 08:37:56.000000000 -0700
@@ -256,7 +256,18 @@ AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h unistd.h sys/endian.h endian.h machine/endian.h sys/machine.h sys/isa_defs.h sys/poll.h)
AC_CHECK_HEADERS(stddef.h wchar.h wcstr.h wctype.h machine/types.h)
AC_CHECK_HEADERS(netinet/in.h netinet/tcp.h sys/un.h)
-AC_CHECK_HEADERS(arpa/nameser.h resolv.h)
+AC_CHECK_HEADERS(arpa/nameser.h)
+AC_CHECK_HEADERS(resolv.h, [], [], [
+#if HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#if HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+#if HAVE_ARPA_NAMESER_H
+#include <arpa/nameser.h>
+#endif
+])
dnl AC_CHECK_HEADERS(linux/irda.h)
dnl Checks for library functions.