bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

another Semaphore patch


From: Vaclav Haisman
Subject: another Semaphore patch
Date: Mon, 25 Jun 2001 10:20:19 +0200 (CEST)

Hi, 

I tryed to compile demo and it failed becuse of undefined reference to
sem_getvalue(). This was caused by Semaphore::getValue() not being inside
#ifdef _SYSV_SEMAPHORES block and haveing only Posix version implemented.
The patch fixes it. I also moved definition of _SYSV_SEMAPHORES before
inclusion of semaphores.h and made the inclusion conditional with
_SYSV_SEMAPHORES. The change in initializers is to get rid of warning:
aggregate has a partly bracketed initializer.


Vaclav Haisman

Attachment: moresemaphores.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]