[PATCH] Buiding on Solaris 2.5.1
Alexandre Petit-Bianco
apbianco@cygnus.com
Fri May 18 21:13:00 GMT 2001
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;
More information about the Java-patches
mailing list