]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
putenv.c: Include ansidecl.h to define `const'.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Fri, 28 May 1999 07:34:48 +0000 (07:34 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Fri, 28 May 1999 07:34:48 +0000 (07:34 +0000)
        * putenv.c: Include ansidecl.h to define `const'.
        * setenv.c: Likewise.

From-SVN: r27221

libiberty/ChangeLog
libiberty/putenv.c
libiberty/setenv.c

index 0c92dc17b985dc4669c820597215cc4370b00ae4..cb77e8a5c9537dd24e58b505f3f6af442b30bd02 100644 (file)
@@ -1,3 +1,8 @@
+1999-05-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * putenv.c: Include ansidecl.h to define `const'.
+       * setenv.c: Likewise.
+
 Wed May 26 03:58:20 1999  "Melissa O'Neill" <oneill@cs.sfu.ca>
 
        * Makefile.in (CFILES): Add putenv.c and setenv.c.
index 1860676c5c5cd0ca561de7473cbf5f396d494c90..9d5692222cf1936b90a52e908a1dc8d0da8b6754 100644 (file)
@@ -24,6 +24,8 @@
 # include <config.h>
 #endif
 
+#include "ansidecl.h"
+
 #if HAVE_STDLIB_H
 # include <stdlib.h>
 #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);
index 0ecc2ca3ede1ac7244ac5ba7009b0cfaa4f06aa3..8a039d18fa8d9899d0a53c524616650fefc805c7 100644 (file)
@@ -20,6 +20,8 @@
 # include <config.h>
 #endif
 
+#include "ansidecl.h"
+
 #include <errno.h>
 #if !defined(errno) && !defined(HAVE_ERRNO_DECL)
 extern int errno;