summaryrefslogtreecommitdiffstats
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
parent3e1e076550c27c6bbdddf36d8f42bd79fbaaa187 (diff)
define _OPENBSD_SOURCE for reallocarray on NetBSDV_7_3_P1
Report by and debugged with Hisashi T Fujinaka, dtucker nailed the problem (lack of prototype causing return type confusion).
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index e64386f0..373d21b3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -839,6 +839,7 @@ mips-sony-bsd|mips-sony-newsos4)
if test "x$withval" != "xno" ; then
need_dash_r=1
fi
+ CPPFLAGS="$CPPFLAGS -D_OPENBSD_SOURCE"
AC_DEFINE([SSH_TUN_FREEBSD], [1], [Open tunnel devices the FreeBSD way])
AC_CHECK_HEADER([net/if_tap.h], ,
AC_DEFINE([SSH_TUN_NO_L2], [1], [No layer 2 tunnel support]))