projects
/
platform
/
upstream
/
binutils.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
5ac8490
..
9acd322
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
47b1c1e
..
3445563
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;