re PR libgcj/5944 (Use of uint32_t breaks libgcj bootstrap on Solaris 2.5.1)

2002-03-15  Tom Tromey  <tromey@redhat.com>
	    Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>

	Fix for PR libgcj/5944.
	* gnu/gcj/io/shs.h: Define uint8_t and uint32_t.

Co-Authored-By: Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>

From-SVN: r50842
This commit is contained in:
Tom Tromey
2002-03-15 21:59:12 +00:00
committed by Tom Tromey
parent fdffea1abb
commit 60f32585da
2 changed files with 14 additions and 0 deletions
+8
View File
@@ -20,6 +20,14 @@
#else
# if HAVE_STDINT_H
# include <stdint.h>
# else
typedef unsigned int uint8_t __attribute__((mode(QI)));
/* This is a blatant hack: on Solaris 2.5, pthread.h defines uint32_t
in pthread.h, which we sometimes include. We protect our
definition the same way Solaris 2.5 does, to avoid redefining it. */
# ifndef _UINT32_T
typedef unsigned int uint32_t __attribute__((mode(SI)));
# endif
# endif
#endif