From bbd3d3f57c74ac073523320910717606dbec92a3 Mon Sep 17 00:00:00 2001 From: David O'Shea Date: Thu, 28 Dec 2017 15:10:47 +1030 Subject: [PATCH] Fix TUN/TAP detection on CentOS 7 (#include ) (fixes #153). Previously, "checking whether TUN/TAP is supported..." in "configure" failed to detect TUN/TAP support due to compile errors due to "struct sockaddr" not being defined. This fix causes sys/socket.h to be #included if it exists. --- BasiliskII/src/Unix/configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BasiliskII/src/Unix/configure.ac b/BasiliskII/src/Unix/configure.ac index 3e44d5a4..983d3312 100644 --- a/BasiliskII/src/Unix/configure.ac +++ b/BasiliskII/src/Unix/configure.ac @@ -906,6 +906,9 @@ dnl Check that the host supports TUN/TAP devices AC_CACHE_CHECK([whether TUN/TAP is supported], ac_cv_tun_tap_support, [ AC_TRY_COMPILE([ + #ifdef HAVE_SYS_SOCKET_H + #include + #endif #if defined(HAVE_LINUX_IF_H) && defined(HAVE_LINUX_IF_TUN_H) #include #include