diff options
author | Jeff Law <law@redhat.com> | 2000-07-26 23:30:27 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 2000-07-26 23:30:27 +0000 |
commit | 443519c1ecf30b3f956e5e53dfbf622c1099f0de (patch) | |
tree | e6e84eabdfd0a23e8fc005e6dc4b059a76eea599 /libiberty | |
parent | 90aaccd1f26c3ac0dc5963d6db4b0f0fcfc2c1d6 (diff) | |
download | gdb-443519c1ecf30b3f956e5e53dfbf622c1099f0de.zip gdb-443519c1ecf30b3f956e5e53dfbf622c1099f0de.tar.gz gdb-443519c1ecf30b3f956e5e53dfbf622c1099f0de.tar.bz2 |
* getcwd.c: Include string.h, stdlib.h for prototypes
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 2 | ||||
-rw-r--r-- | libiberty/getcwd.c | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 5ac8490..9acd322 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,6 +1,8 @@ 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 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; |