Reported by Daniel Richard G. <skunk@iskunk.org>.
* modules/lock-tests (configure.ac): Test for <semaphore.h>.
* tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
exist.
+2017-02-20 Bruno Haible <bruno@clisp.org>
+
+ lock tests: Fix build failure on z/OS.
+ Reported by Daniel Richard G. <skunk@iskunk.org>.
+ * modules/lock-tests (configure.ac): Test for <semaphore.h>.
+ * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
+ exist.
+
2017-02-19 Bruno Haible <bruno@clisp.org>
havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
yield
configure.ac:
+AC_CHECK_HEADERS_ONCE([semaphore.h])
Makefile.am:
TESTS += test-rwlock1 test-lock
synchronization/communication between different CPUs. */
#define USE_VOLATILE 0
-#if USE_POSIX_THREADS
+#if USE_POSIX_THREADS && HAVE_SEMAPHORE_H
/* Whether to use a semaphore to communicate information between threads.
If set to 0, a lock is used. If set to 1, a semaphore is used.
Uncomment this to reduce the dependencies of this test. */