diff options
| author | cgd <cgd@NetBSD.org> | 1993-03-25 05:51:03 +0000 |
|---|---|---|
| committer | cgd <cgd@NetBSD.org> | 1993-03-25 05:51:03 +0000 |
| commit | 3ed1b2cbf7c53c58b3fa7d7be2936ee5f8c61c09 (patch) | |
| tree | ba57badcb6d7e366c61f93bdfc7d74891d624615 /include/stdlib.h | |
| parent | d3db1501d2ab7fc7abc7f7c01a8ab448d8a4f96f (diff) | |
patch from rich murphy (rich@rice.edu) to fix alloca prototype
Diffstat (limited to 'include/stdlib.h')
| -rw-r--r-- | include/stdlib.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index 8e9a5951d61..18c0c1c7482 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -102,7 +102,11 @@ int setenv __P((const char *, const char *, int)); #endif /* not ANSI */ #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) -void *alloca __P((size_t)); /* built-in for gcc */ +#if defined(alloca) && (alloca == __builtin_alloca) +void *alloca __P((int)); /* built-in for gcc */ +#else +void *alloca __P((size_t)); +#endif /* __GNUC__ */ extern char *optarg; /* getopt(3) external variables */ extern int optind; extern int opterr; |
