projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90aaccd
)
* getcwd.c: Include string.h, stdlib.h for prototypes
author
Jeff Law
<law@redhat.com>
Wed, 26 Jul 2000 23:30:27 +0000
(23:30 +0000)
committer
Jeff Law
<law@redhat.com>
Wed, 26 Jul 2000 23:30:27 +0000
(23:30 +0000)
libiberty/ChangeLog
patch
|
blob
|
history
libiberty/getcwd.c
patch
|
blob
|
history
diff --git
a/libiberty/ChangeLog
b/libiberty/ChangeLog
index 5ac849099b19c0fd39d0d55516f2db52180e9ed3..9acd322846c278c013395b762d2a0c24acaca2c0 100644
(file)
--- 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 47b1c1eec31e1c680bbb5deb42efb07e84f6a3f6..344556392b31c0fab62f2c859392b0211d48581e 100644
(file)
--- 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;