aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodney Brown <RodneyBrown@pmsc.com>2000-07-26 17:29:55 -0600
committerJeff Law <law@gcc.gnu.org>2000-07-26 17:29:55 -0600
commit73aa9564f6f64f2e70a38e642f9c3536ba9aecf7 (patch)
treee0cdfa2d7d7fa106430d32f9e08f44c75d29325d
parentc2f275e484523e8a63d6751473d59c6fc63e0f74 (diff)
downloadgcc-73aa9564f6f64f2e70a38e642f9c3536ba9aecf7.zip
gcc-73aa9564f6f64f2e70a38e642f9c3536ba9aecf7.tar.gz
gcc-73aa9564f6f64f2e70a38e642f9c3536ba9aecf7.tar.bz2
getcwd.c: Include string.h, stdlib.h for prototypes
* getcwd.c: Include string.h, stdlib.h for prototypes Co-Authored-By: Jeffrey A Law <law@cygnus.com> From-SVN: r35273
-rw-r--r--libiberty/ChangeLog6
-rw-r--r--libiberty/getcwd.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index d996712..4790fc3 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -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>
diff --git a/libiberty/getcwd.c b/libiberty/getcwd.c
index 47b1c1e..3445563 100644
--- a/libiberty/getcwd.c
+++ b/libiberty/getcwd.c
@@ -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;