summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2016-07-28 08:54:27 +1000
committerDamien Miller <djm@mindrot.org>2016-07-28 08:54:27 +1000
commit99522ba7ec6963a05c04a156bf20e3ba3605987c (patch)
treec5db0855bff312a7cf24a2c5f177ae7c7e15df0d /configure.ac
parent3e1e076550c27c6bbdddf36d8f42bd79fbaaa187 (diff)
define _OPENBSD_SOURCE for reallocarray on NetBSD
Report by and debugged with Hisashi T Fujinaka, dtucker nailed the problem (lack of prototype causing return type confusion).
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e64386f06..373d21b34 100644
--- a/configure.ac
+++ b/configure.ac
@@ -839,6 +839,7 @@ mips-sony-bsd|mips-sony-newsos4)
839 if test "x$withval" != "xno" ; then 839 if test "x$withval" != "xno" ; then
840 need_dash_r=1 840 need_dash_r=1
841 fi 841 fi
842 CPPFLAGS="$CPPFLAGS -D_OPENBSD_SOURCE"
842 AC_DEFINE([SSH_TUN_FREEBSD], [1], [Open tunnel devices the FreeBSD way]) 843 AC_DEFINE([SSH_TUN_FREEBSD], [1], [Open tunnel devices the FreeBSD way])
843 AC_CHECK_HEADER([net/if_tap.h], , 844 AC_CHECK_HEADER([net/if_tap.h], ,
844 AC_DEFINE([SSH_TUN_NO_L2], [1], [No layer 2 tunnel support])) 845 AC_DEFINE([SSH_TUN_NO_L2], [1], [No layer 2 tunnel support]))