From 7442568456f59de7c6449eb0489d75f4d5cb27a4 Mon Sep 17 00:00:00 2001 From: jacob berkman Date: Tue, 9 Aug 2016 15:04:45 -0700 Subject: [PATCH] Disable netcat if arpa/telnet.h is not available (iOS) --- m4/check-os-options.m4 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/m4/check-os-options.m4 b/m4/check-os-options.m4 index 3cb2f82..f2ff57f 100644 --- a/m4/check-os-options.m4 +++ b/m4/check-os-options.m4 @@ -21,6 +21,8 @@ case $host_os in # public source: # http://www.opensource.apple.com/source/Libc/Libc-997.90.3/gen/FreeBSD/arc4random.c USE_BUILTIN_ARC4RANDOM=yes + # Not available on iOS + AC_CHECK_HEADER([arpa/telnet.h], [], [BUILD_NC=no]) ;; *freebsd*) HOST_OS=freebsd