From: tedu Date: Thu, 15 Jan 2015 19:55:58 +0000 (+0000) Subject: we don't have an alloca() symbol anywhere in libc, don't prototype it. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=af4f502b8bf6823323964c31db90d47d7892a45d;p=openbsd 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!) --- diff --git a/include/stdlib.h b/include/stdlib.h index d048e704242..fd2fc278017 100644 --- a/include/stdlib.h +++ b/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);