* tests/test-thread-optim2.c: Skip the test if multithreading is not
enabled.
+2026-05-18 Bruno Haible <bruno@clisp.org>
+
+ thread-optim tests: Fix a test failure with --disable-threads.
+ * tests/test-thread-optim2.c: Skip the test if multithreading is not
+ enabled.
+
2026-05-18 Bruno Haible <bruno@clisp.org>
term-style-control: Make multithread-safe, part 5: SIGCONT handler.
#include "macros.h"
+#if USE_ISOC_THREADS || USE_POSIX_THREADS || USE_ISOC_AND_POSIX_THREADS || USE_WINDOWS_THREADS
+
static int dummy;
static void *
return test_exit_status;
}
+
+#else
+
+/* No multithreading available.
+ glthread_create is a dummy that just returns ENOSYS.
+ gl_thread_create therefore aborts. */
+
+#include <stdio.h>
+
+int
+main ()
+{
+ fputs ("Skipping test: multithreading not enabled\n", stderr);
+ return 77;
+}
+
+#endif