diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2015-01-15 19:55:59 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2015-01-15 19:55:59 +0000 |
commit | 1cf615eeb2b8a5a8dc57650b0267410cebefd310 (patch) | |
tree | be30bd8f796e4f5704241a5e2938f0f698e1a615 | |
parent | a94336096c4ecd3ba9edbcbae5b632d4df04f84d (diff) |
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!)
-rw-r--r-- | include/stdlib.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); |