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]

Patch installed to libiberty/xmemdup.c for K&R compilers.


	For SunOS cc, I needed the following patch to bootstrap.

Currently, libiberty.h includes stddef.h when ANSI_PROTOTYPES is true.
This gets us size_t but only for ansi compilers.

I installed the following patch so that all systems including K&R ones
get a size_t.

	      --Kaveh

Note we should probably create a system.h for the libiberty dir so we
don't keep running into these problems.  I'm working on it. :-)


Index: ChangeLog
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/libiberty/ChangeLog,v
retrieving revision 1.129
diff -u -p -r1.129 ChangeLog
--- ChangeLog	1999/09/08 08:19:52	1.129
+++ ChangeLog	1999/09/09 00:09:30
@@ -1,3 +1,7 @@
+Wed Sep  8 20:03:28 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+	* xmemdup.c: Include sys/types.h.
+
 1999-09-07  Jeff Garzik  <jgarzik@pobox.com>
 
 	* xmemdup.c: New xmemdup function.
Index: xmemdup.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/libiberty/xmemdup.c,v
retrieving revision 1.1
diff -u -p -r1.1 xmemdup.c
--- xmemdup.c	1999/09/08 08:19:52	1.1
+++ xmemdup.c	1999/09/09 00:09:30
@@ -8,6 +8,8 @@
 #include "ansidecl.h"
 #include "libiberty.h"
 
+#include <sys/types.h> /* For size_t. */
+
 PTR
 xmemdup (input, copy_size, alloc_size)
   const PTR input;


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