From 60f32585da3a529a5a6e03e30c2184ae8abc0f94 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 15 Mar 2002 21:59:12 +0000 Subject: [PATCH] re PR libgcj/5944 (Use of uint32_t breaks libgcj bootstrap on Solaris 2.5.1) 2002-03-15 Tom Tromey Rainer Orth Fix for PR libgcj/5944. * gnu/gcj/io/shs.h: Define uint8_t and uint32_t. Co-Authored-By: Rainer Orth From-SVN: r50842 --- libjava/ChangeLog | 6 ++++++ libjava/gnu/gcj/io/shs.h | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 84133543007..11f0ef3112f 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,9 @@ +2002-03-15 Tom Tromey + Rainer Orth + + Fix for PR libgcj/5944. + * gnu/gcj/io/shs.h: Define uint8_t and uint32_t. + 2002-03-15 Anthony Green * configure.in (tool_include_dir): Define. diff --git a/libjava/gnu/gcj/io/shs.h b/libjava/gnu/gcj/io/shs.h index 9b7bb2462c5..1b435c5df8e 100644 --- a/libjava/gnu/gcj/io/shs.h +++ b/libjava/gnu/gcj/io/shs.h @@ -20,6 +20,14 @@ #else # if HAVE_STDINT_H # include +# 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 -- 2.30.2