Check for linux/if.h when enabling rdomain.

musl libc doesn't seem to have linux/if.h, so check for its presence
before enabling rdomain support on Linux.
This commit is contained in:
Darren Tucker 2017-11-03 14:52:51 +11:00
parent fa1b834cce
commit 81c9ccdbf6
1 changed files with 3 additions and 2 deletions

View File

@ -779,8 +779,9 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
AC_DEFINE([SSH_TUN_PREPEND_AF], [1],
[Prepend the address family to IP tunnel traffic])
fi
AC_DEFINE([SYS_RDOMAIN_LINUX], [1],
[Support routing domains using Linux VRF])
AC_CHECK_HEADER([linux/if.h],
AC_DEFINE([SYS_RDOMAIN_LINUX], [1],
[Support routing domains using Linux VRF]))
AC_CHECK_HEADERS([linux/seccomp.h linux/filter.h linux/audit.h], [],
[], [#include <linux/types.h>])
AC_MSG_CHECKING([for seccomp architecture])