Patch: Add #include <stddef.h> in fastjar

Mohan Embar gnustuff@thisiscool.com
Sat Mar 8 04:54:00 GMT 2003


Hi Patch Folks,

This patch adds an #include <stddef.h> to dostime.c in fastjar
for the definition of NULL. It's required to do a self-hosted
build of GCC/GCJ 3.3 under MingW GCC 3.2. I also believe it's
a valid #include because the inclusion of stddef.h can't
necessarily be inferred from the other #includes on all
platforms.

Enjoy.

-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/

ChangeLog
2003-03-07  Mohan Embar  <gnustuff@thisiscool.com>

	* dostime.c: add #include <stddef.h> for definition of NULL

Index: dostime.c
===================================================================
RCS file: /cvsroot/gcc/gcc/fastjar/dostime.c,v
retrieving revision 1.4
diff -u -2 -r1.4 dostime.c
--- dostime.c	11 Nov 2002 22:20:56 -0000	1.4
+++ dostime.c	8 Mar 2003 03:19:26 -0000
@@ -19,5 +19,5 @@
 
 #include <config.h>
-
+#include <stddef.h>
 #include <time.h>
 






More information about the Java-patches mailing list