Merge pull request #155 from dcoshea/issue-153

Fix TUN/TAP detection on CentOS 7 (#include <sys/socket.h>) (fixes #153).
This commit is contained in:
asvitkine 2017-12-28 13:31:00 -05:00 committed by GitHub
commit 86c5613701
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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>