3 @@ -1031,15 +1031,18 @@ AC_LINK_IFELSE(
5 # Some platforms define sem_init(), but only support sem_open(). joyous.
6 AC_MSG_CHECKING(for working unnamed semaphores)
8 - [AC_LANG_PROGRAM([#include <semaphore.h>],
9 - [sem_t sem; return sem_init(&sem, 0, 0);])],
12 + [#include <semaphore.h>],
13 + [#if defined(__UCLIBC__)
18 + return sem_init(&sem, 0, 0);])],
20 AC_DEFINE([HAS_WORKING_SEMAPHORE], 1, [Define to 1 if anonymous semaphores work.]),
22 - AC_MSG_RESULT(cross-compile)
23 - AC_MSG_NOTICE([WARNING: result yes guessed because of cross compilation])
24 - AC_DEFINE([HAS_WORKING_SEMAPHORE], 1, [Define to 1 if anonymous semaphores work.])