summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorhannken <hannken@NetBSD.org>2019-06-22 14:40:33 +0000
committerhannken <hannken@NetBSD.org>2019-06-22 14:40:33 +0000
commitd523276854d5fe53ab2cfb98bcddbc645ae0db48 (patch)
treebd1e9d7105d0014704a029626ce84defa181a954 /tools
parent885345c39e56d29682d22bf6cf49ba3b526b6cdd (diff)
Bring back two lines deleted by accident. From Kamil Rytarowski.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/compat/configure2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/compat/configure b/tools/compat/configure
index fe8661c3c57..883f57a74a5 100755
--- a/tools/compat/configure
+++ b/tools/compat/configure
@@ -5130,6 +5130,8 @@ else
# ifdef _MSC_VER
# include <malloc.h>
# define alloca _alloca
+# elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
+# include <stdlib.h>
# else
# ifdef HAVE_ALLOCA_H
# include <alloca.h>