From fee9125c1006868fd3f4598dc70156e09b9a8a18 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Fri, 28 May 1999 07:34:48 +0000 Subject: putenv.c: Include ansidecl.h to define `const'. * putenv.c: Include ansidecl.h to define `const'. * setenv.c: Likewise. From-SVN: r27221 --- libiberty/putenv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libiberty/putenv.c') diff --git a/libiberty/putenv.c b/libiberty/putenv.c index 1860676..9d56922 100644 --- a/libiberty/putenv.c +++ b/libiberty/putenv.c @@ -24,6 +24,8 @@ # include #endif +#include "ansidecl.h" + #if HAVE_STDLIB_H # include #endif @@ -55,7 +57,7 @@ putenv (string) if (name_end) { - char *name = alloca (name_end - string + 1); + char *name = (char *) alloca (name_end - string + 1); memcpy (name, string, name_end - string); name[name_end - string] = '\0'; return setenv (name, name_end + 1, 1); -- cgit v1.1