This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
shs.cc won't build on Solaris 2.5/sparc
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: java-patches at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: 24 Feb 2002 10:43:20 -0300
- Subject: shs.cc won't build on Solaris 2.5/sparc
- Organization: GCC Team, Red Hat
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