From a4a6233dab7685359fbb185196948d3616f42021 Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Wed, 10 Nov 2004 07:33:15 +0000 Subject: [PATCH] fix detection of (thanks Bob Deblier) --- BasiliskII/src/Unix/configure.ac | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BasiliskII/src/Unix/configure.ac b/BasiliskII/src/Unix/configure.ac index ee05afc2..121fd7b7 100644 --- a/BasiliskII/src/Unix/configure.ac +++ b/BasiliskII/src/Unix/configure.ac @@ -265,7 +265,12 @@ dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(unistd.h fcntl.h sys/types.h sys/time.h sys/mman.h mach/mach.h) AC_CHECK_HEADERS(readline.h history.h readline/readline.h readline/history.h) -AC_CHECK_HEADERS(linux/if.h linux/if_tun.h net/if.h net/if_tun.h) +AC_CHECK_HEADERS(sys/socket.h) +AC_CHECK_HEADERS(linux/if.h linux/if_tun.h net/if.h net/if_tun.h, [], [], [ +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +]) AC_CHECK_HEADERS(AvailabilityMacros.h) dnl Checks for typedefs, structures, and compiler characteristics.