[kaffe] Missing ifdef in ksem.c

Alexander Boettcher ab764283 at os.inf.tu-dresden.de
Wed Sep 22 05:17:23 PDT 2004


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.

-------------- next part --------------
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


More information about the kaffe mailing list