summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2017-11-03 04:52:51 +0100
committerDarren Tucker <dtucker@zip.com.au>2017-11-03 04:52:51 +0100
commit81c9ccdbf6ddbf9bfbd6f1f775a5a7c13e47e185 (patch)
treef549fb9636ea0d6c7195153802e6a1c3a7380c5b /configure.ac
parentAdd headers for sys/sysctl.h and net/route.h (diff)
downloadopenssh-81c9ccdbf6ddbf9bfbd6f1f775a5a7c13e47e185.tar.xz
openssh-81c9ccdbf6ddbf9bfbd6f1f775a5a7c13e47e185.zip
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.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index a739bd553..78ba25c96 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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])