From 443519c1ecf30b3f956e5e53dfbf622c1099f0de Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 26 Jul 2000 23:30:27 +0000 Subject: [PATCH] * getcwd.c: Include string.h, stdlib.h for prototypes --- libiberty/ChangeLog | 2 ++ libiberty/getcwd.c | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 5ac849099b..9acd322846 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,6 +1,8 @@ 2000-07-27 RodneyBrown Jeff Law + * 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 47b1c1eec3..344556392b 100644 --- a/libiberty/getcwd.c +++ b/libiberty/getcwd.c @@ -29,6 +29,12 @@ BUGS #include #endif #include +#ifdef HAVE_STRING_H +#include +#endif +#ifdef HAVE_STDLIB_H +#include +#endif extern char *getwd (); extern int errno;