From 826668e285dcee71e67ce3ee1ec336cb837d5c0d Mon Sep 17 00:00:00 2001 From: tedu <> Date: Thu, 15 Jan 2015 19:55:58 +0000 Subject: [PATCH] we don't have an alloca() symbol anywhere in libc, don't prototype it. instead, #define to __builtin_alloca. if that doesn't work, you're hosed. from an old discussion about the perils of alloca. (don't use alloca!) --- src/include/stdlib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/stdlib.h b/src/include/stdlib.h index d048e704..fd2fc278 100644 --- a/src/include/stdlib.h +++ b/src/include/stdlib.h @@ -1,4 +1,4 @@ -/* $OpenBSD: stdlib.h,v 1.62 2014/12/08 21:45:19 deraadt Exp $ */ +/* $OpenBSD: stdlib.h,v 1.63 2015/01/15 19:55:58 tedu Exp $ */ /* $NetBSD: stdlib.h,v 1.25 1995/12/27 21:19:08 jtc Exp $ */ /*- @@ -267,7 +267,7 @@ int mkostemp(char *, int); #endif #if __BSD_VISIBLE -void *alloca(size_t); +#define alloca(n) __builtin_alloca(n) char *getbsize(int *, long *); char *cgetcap(char *, const char *, int);