egcs-19990602/libiberty size_t etc fixes

Philippe De Muyter phdm@macqel.be
Sat Jun 5 09:19:00 GMT 1999


In order to bootstrap egcs-1990602 with sysV68's cc, I needed to apply the
following patch :

Fri Jun  4 18:41:39 1999  Philippe De Muyter  <phdm@macqel.be>

	* setenv.c (sys/types.h, stdio.h): Files included;
	(malloc): External function declaration added.
	* xstrdup.c (sys/types.h): File included.

--- ./libiberty/xstrdup.c	Sat Jun  5 17:54:45 1999
+++ ./libiberty/xstrdup.c	Fri Jun  4 18:38:32 1999
@@ -5,6 +5,7 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
+#include <sys/types.h>	/* For `size_t' */
 #ifdef HAVE_STRING_H
 #include <string.h>
 #endif
--- ./libiberty/setenv.c	Sat Jun  5 17:54:46 1999
+++ ./libiberty/setenv.c	Fri Jun  4 19:19:22 1999
@@ -30,6 +30,10 @@
 
 #if HAVE_STDLIB_H
 # include <stdlib.h>
+#else
+#include <sys/types.h>	/* For `size_t' */
+#include <stdio.h>	/* For `NULL' */
+char * malloc ();
 #endif
 #if HAVE_STRING_H
 # include <string.h>


More information about the Gcc-patches mailing list