From: Jeff Law Date: Wed, 26 Jul 2000 23:30:27 +0000 (+0000) Subject: * getcwd.c: Include string.h, stdlib.h for prototypes X-Git-Tag: newlib-1_9_0~1356 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=443519c1ecf30b3f956e5e53dfbf622c1099f0de;p=platform%2Fupstream%2Fbinutils.git * getcwd.c: Include string.h, stdlib.h for prototypes --- 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 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 47b1c1e..3445563 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;