* tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
+2019-12-15 Bruno Haible <bruno@clisp.org>
+
+ lock tests: Skip test when no multithreading is enabled.
+ * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
+
2019-12-14 Bruno Haible <bruno@clisp.org>
locale, duplocale, localename: Fix last patch.
#include <config.h>
+#if USE_ISOC_THREADS || USE_POSIX_THREADS || USE_ISOC_AND_POSIX_THREADS || USE_WINDOWS_THREADS
+
#include "glthread/lock.h"
#include <errno.h>
sleep (1);
}
}
+
+#else
+
+/* No multithreading available. */
+
+#include <stdio.h>
+
+int
+main ()
+{
+ fputs ("Skipping test: multithreading not enabled\n", stderr);
+ return 77;
+}
+
+#endif