This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libiberty/getcwd newlib prototypes


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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]