summaryrefslogtreecommitdiff
path: root/tests/test-lock.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-07-06 03:36:45 +0200
committerBruno Haible <bruno@clisp.org>2019-07-06 03:36:45 +0200
commite58796ff7110de26254fc06afdff21461462be72 (patch)
tree2271489ae65599f497c1e90fc791c1770addaaa4 /tests/test-lock.c
parentd44241344e8455c59ea04440706cfaf72862c404 (diff)
downloadgnulib-e58796ff7110de26254fc06afdff21461462be72.tar.gz
thread, lock, cond, tls: Remove support for old Solaris threads.
Solaris >= 2.5.1 has POSIX threads. * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document --enable-threads=solaris any more. (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more. * lib/glthread/thread.c: Update comment. * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS. * lib/glthread/lock.h: Likewise. * lib/glthread/lock.c: Likewise. * lib/glthread/cond.h: Likewise. * lib/glthread/cond.c: Likewise. * lib/glthread/tls.h: Likewise. * lib/glthread/tls.c: Likewise. * lib/glthread/yield.h: Likewise. * lib/regex_internal.h: Likewise. * tests/test-thread_create.c: Likewise. * tests/test-lock.c: Likewise. * tests/test-cond.c: Likewise. * tests/test-tls.c: Likewise.
Diffstat (limited to 'tests/test-lock.c')
-rw-r--r--tests/test-lock.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/test-lock.c b/tests/test-lock.c
index ca7dd62fbb..e3b4ce9f7b 100644
--- a/tests/test-lock.c
+++ b/tests/test-lock.c
@@ -18,14 +18,11 @@
#include <config.h>
-#if USE_POSIX_THREADS || USE_SOLARIS_THREADS || USE_PTH_THREADS || USE_WINDOWS_THREADS
+#if USE_POSIX_THREADS || USE_PTH_THREADS || USE_WINDOWS_THREADS
#if USE_POSIX_THREADS
# define TEST_POSIX_THREADS 1
#endif
-#if USE_SOLARIS_THREADS
-# define TEST_SOLARIS_THREADS 1
-#endif
#if USE_PTH_THREADS
# define TEST_PTH_THREADS 1
#endif
@@ -90,7 +87,6 @@
#if !ENABLE_LOCKING
# undef USE_POSIX_THREADS
-# undef USE_SOLARIS_THREADS
# undef USE_PTH_THREADS
# undef USE_WINDOWS_THREADS
#endif
@@ -100,9 +96,6 @@
# if TEST_POSIX_THREADS
# define USE_POSIX_THREADS 1
# endif
-# if TEST_SOLARIS_THREADS
-# define USE_SOLARIS_THREADS 1
-# endif
# if TEST_PTH_THREADS
# define USE_PTH_THREADS 1
# endif