This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
libiberty/getcwd newlib prototypes
- To: gcc-patches at gcc dot gnu dot org
- Subject: libiberty/getcwd newlib prototypes
- From: Rodney Brown <rdb at localhost>
- Date: Tue, 25 Jul 2000 23:42:38 +1000 (EST)
- Reply-To: RDBrown at mira dot net, RodneyBrown at pmsc dot com
Warnings from --target=mcore-mcore-elf with newlib-1.8.2
0626/libiberty/getcwd.c:50: warning: implicit declaration of function `strlen'
0626/libiberty/getcwd.c:55: warning: implicit declaration of function `malloc'
0626/libiberty/getcwd.c:61: warning: implicit declaration of function `strcpy'
2000-07-25 RodneyBrown <RodneyBrown@pmsc.com>
* getcwd.h: include string.h, stdlib.h for prototypes
--- libiberty/getcwd.c.orig Wed May 26 13:04:27 1999
+++ libiberty/getcwd.c Mon Jul 3 22:22:09 2000
@@ -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;