]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
authorBruno Haible <bruno@clisp.org>
Mon, 2 Dec 2019 09:59:21 +0000 (10:59 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 2 Dec 2019 09:59:48 +0000 (10:59 +0100)
* tests/test-thread_self.c (main): Disable test on AIX.

ChangeLog
tests/test-thread_self.c

index 6ca57ee3e6b683266780427d06e9de95e291db99..c1e45f6a432bd0aa195239ccde83452b5b8dedb2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-12-02  Bruno Haible  <bruno@clisp.org>
+
+       thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
+       * tests/test-thread_self.c (main): Disable test on AIX.
+
 2019-12-01  Bruno Haible  <bruno@clisp.org>
 
        pthread-h: Fix link errors with --enable-threads=isoc on AIX.
index 8fb00a1e4c1efdadc7b6532a2f9b12d51eb67309..0d48ddcc06c981449ee41f586062943d325ef94d 100644 (file)
@@ -28,7 +28,12 @@ main ()
   /* Check that gl_thread_self () can be used with just $(LIBTHREAD), not
      $(LIBMULTITHREAD), i.e. in libraries that are multithread-safe but don't
      create threads themselves.  */
+  /* This is not the case on AIX with --enable-threads=isoc+posix, because in
+     this case, $(LIBTHREAD) is empty whereas $(LIBMULTITHREAD) is '-lpthread'.
+   */
+#if !defined _AIX
   main_thread = gl_thread_self ();
+#endif
 
   return 0;
 }