From f73dda092b33638d2d5e9c35375f687a607b5403 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Tue, 13 Nov 2001 17:56:06 +0000 Subject: Imported from ../bash-2.05a.tar.gz. --- include/memalloc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/memalloc.h') diff --git a/include/memalloc.h b/include/memalloc.h index a1a2706..d3ed041 100644 --- a/include/memalloc.h +++ b/include/memalloc.h @@ -30,7 +30,7 @@ # define HAVE_ALLOCA #endif -#if defined (HAVE_ALLOCA_H) && !defined (HAVE_ALLOCA) +#if defined (HAVE_ALLOCA_H) && !defined (HAVE_ALLOCA) && !defined (C_ALLOCA) # define HAVE_ALLOCA #endif /* HAVE_ALLOCA_H && !HAVE_ALLOCA */ @@ -49,7 +49,11 @@ extern void *alloca (); # else # if !defined (alloca) +# if defined (__STDC__) +extern void *alloca (size_t); +# else extern char *alloca (); +# endif /* !__STDC__ */ # endif /* !alloca */ # endif /* !__hpux || !__STDC__ && !alloca */ # endif /* !HAVE_ALLOCA_H || C_ALLOCA */ -- cgit v1.2.3