Fix TUN/TAP detection on CentOS 7 (#include <sys/socket.h>) (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.
This commit is contained in:
parent
1c9b21f580
commit
bbd3d3f57c
|
@ -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 <sys/socket.h>
|
||||
#endif
|
||||
#if defined(HAVE_LINUX_IF_H) && defined(HAVE_LINUX_IF_TUN_H)
|
||||
#include <linux/if.h>
|
||||
#include <linux/if_tun.h>
|
||||
|
|
Loading…
Reference in New Issue