summaryrefslogtreecommitdiff
path: root/libiberty/getcwd.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2000-07-26 23:30:27 +0000
committerJeff Law <law@redhat.com>2000-07-26 23:30:27 +0000
commit4d5c5c98177690df576dbf75dc9ffb029f632c7c (patch)
treede9474b6070b836856de7bdce99fbf8f3925c150 /libiberty/getcwd.c
parent967192c9d1d79493d6218abb92f1d9d82e68d014 (diff)
downloadgdb-4d5c5c98177690df576dbf75dc9ffb029f632c7c.tar.gz
* getcwd.c: Include string.h, stdlib.h for prototypes
Diffstat (limited to 'libiberty/getcwd.c')
-rw-r--r--libiberty/getcwd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libiberty/getcwd.c b/libiberty/getcwd.c
index 47b1c1eec31..344556392b3 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;