This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[PATCH] Buiding on Solaris 2.5.1
- To: java-patches at gcc dot gnu dot org
- Subject: [PATCH] Buiding on Solaris 2.5.1
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Fri, 18 May 2001 21:13:04 -0700
- Reply-to: apbianco at cygnus dot com
This let me build the Java toolchain on Solaris 2.5.1. It doesn't seem
to be breaking anything.
OK for the trunk and the branch?
./A
2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com>
* include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'
(_Jv_MutexInit): Likewise.
Index: posix-threads.h
===================================================================
RCS file: /cvs/gcc/gcc/libjava/include/posix-threads.h,v
retrieving revision 1.16
diff -u -p -r1.16 posix-threads.h
--- posix-threads.h 2000/12/30 12:18:39 1.16
+++ posix-threads.h 2001/05/18 21:45:07
@@ -99,7 +99,7 @@ int _Jv_CondNotifyAll (_Jv_ConditionVari
inline void
_Jv_CondInit (_Jv_ConditionVariable_t *cv)
{
- cv->first = NULL;
+ cv->first = 0;
}
//
@@ -109,7 +109,7 @@ _Jv_CondInit (_Jv_ConditionVariable_t *c
inline void
_Jv_MutexInit (_Jv_Mutex_t *mu)
{
- pthread_mutex_init (&mu->mutex, NULL);
+ pthread_mutex_init (&mu->mutex, 0);
mu->count = 0;
mu->owner = 0;