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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

shs.cc won't build on Solaris 2.5/sparc


uint32_t and uint8_t are only available on Solaris 2.5 when pthread.h
is included (!!!).  I couldn't find any header in libjava that would
make sure these types were available, so I just arranged for shs.cc to
include jvm.h, like natSimpleSHSStream.cc does, which gets around the
problem.  Is this ok to install?

Index: libjava/ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>

	* gnu/gcj/io/shs.cc: Include jvm.h for definitions of uint32_t and
	uint8_t, needed by shs.h.

Index: libjava/gnu/gcj/io/shs.cc
===================================================================
RCS file: /cvs/gcc/egcs/libjava/gnu/gcj/io/shs.cc,v
retrieving revision 1.3
diff -u -p -r1.3 shs.cc
--- libjava/gnu/gcj/io/shs.cc 2002/02/07 05:01:29 1.3
+++ libjava/gnu/gcj/io/shs.cc 2002/02/24 13:39:24
@@ -15,6 +15,10 @@
 #pragma GCC java_exceptions
 
 #include <string.h>
+
+/* This will get us uint32_t and uint8_t on Solaris 2.5.  */
+#include <jvm.h>
+
 #include "shs.h"
 
 /* The SHS f()-functions */

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer

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