Hi,

somehow the test for THREAD_SYSTEM_HAS_KSEM was lost during the last months. It's neccessary if an operating system provides its own ksem semaphore implementation. I attached the small diff/fix .

Regards,

Alexander B�ttcher.

Index: ksem.c
===================================================================
RCS file: /cvs/kaffe/kaffe/kaffe/kaffevm/ksem.c,v
retrieving revision 1.7
diff -u -d -r1.7 ksem.c
--- ksem.c      2 Aug 2004 10:44:56 -0000       1.7
+++ ksem.c      22 Sep 2004 12:04:20 -0000
@@ -10,6 +10,8 @@
 
 #include "ksem.h"
 
+#ifndef THREAD_SYSTEM_HAS_KSEM
+
 /*
  * Initialize the just-allocated Ksem.  This function is only invoked
  * by the threading system when a new thread is allocated.
@@ -86,3 +88,5 @@
        jmutex_destroy(&(sem->mux));
        jcondvar_destroy(&(sem->cv));
 }
+
+#endif
_______________________________________________
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to