Ticket #470 (closed defect: fixed)
Compile error when <semaphore.h> is not present
|Reported by:||bennylp||Owned by:||bennylp|
|Backport to 1.x milestone:||Backported:|
The PJLIB's os_core_unix.c includes <semaphore.h> unconditionally, which causes compilation error if it's not present (e.g. in newlib, IIRC). Since semaphore is optional (it's only used when read/write mutex (rwmutex) needs to be emulated), the configure script should detect this and set the flags accordingly.