getcwd.c: Include string.h, stdlib.h for prototypes
authorRodney Brown <RodneyBrown@pmsc.com>
Wed, 26 Jul 2000 23:29:55 +0000 (17:29 -0600)
committerJeff Law <law@gcc.gnu.org>
Wed, 26 Jul 2000 23:29:55 +0000 (17:29 -0600)
        * getcwd.c: Include string.h, stdlib.h for prototypes

Co-Authored-By: Jeffrey A Law <law@cygnus.com>
From-SVN: r35273

libiberty/ChangeLog
libiberty/getcwd.c

index d996712..4790fc3 100644 (file)
@@ -1,9 +1,11 @@
 2000-07-27  RodneyBrown  <RodneyBrown@pmsc.com>
            Jeff Law <law@cygnus.com>
 
+       * getcwd.c: Include string.h, stdlib.h for prototypes
+
        * Makefile.in (rename.o, waitpid.o): Depend on config.h
-       * rename.c: include config.h, unistd.h
-       * waitpid.c: include config.h, sys/wait.h
+       * rename.c: Include config.h, unistd.h
+       * waitpid.c: Include config.h, sys/wait.h
 
 2000-07-21  Alex Samuel  <samuel@codesourcery.com>
 
index 47b1c1e..3445563 100644 (file)
@@ -29,6 +29,12 @@ BUGS
 #include <sys/param.h>
 #endif
 #include <errno.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
 
 extern char *getwd ();
 extern int errno;