aboutsummaryrefslogtreecommitdiff
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
commit443519c1ecf30b3f956e5e53dfbf622c1099f0de (patch)
treee6e84eabdfd0a23e8fc005e6dc4b059a76eea599 /libiberty/getcwd.c
parent90aaccd1f26c3ac0dc5963d6db4b0f0fcfc2c1d6 (diff)
downloadgdb-443519c1ecf30b3f956e5e53dfbf622c1099f0de.zip
gdb-443519c1ecf30b3f956e5e53dfbf622c1099f0de.tar.gz
gdb-443519c1ecf30b3f956e5e53dfbf622c1099f0de.tar.bz2
* 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 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;