]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Conditionalize use of SIGRTMIN in nptl/tst-locale1.c.
authorRoland McGrath <roland@hack.frob.com>
Fri, 6 Feb 2015 20:30:58 +0000 (12:30 -0800)
committerRoland McGrath <roland@hack.frob.com>
Fri, 6 Feb 2015 20:30:58 +0000 (12:30 -0800)
ChangeLog
nptl/tst-locale1.c

index 5b694e41339b477e25aca83b9baba1dcca0640de..76bfa13b20923d4f8019a7bbcc7983c9d74a5827 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2015-02-06  Roland McGrath  <roland@hack.frob.com>
 
+       * nptl/tst-locale1.c (useless): Use SIGRTMIN only if it's defined.
+
        * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which
        will not be used.  Use NULL rather than 0 for .sigev_notify_attributes.
 
index 2ee4c3fbce91081b597c8726d283c8bbd6d071c3..887b9a6dd702cffea9f1ad301b3d39760d918681 100644 (file)
@@ -12,7 +12,11 @@ useless (void)
 {
   pthread_t th;
   pthread_create (&th, 0, (void *(*) (void *)) useless, 0);
+  int result = 0;
+#ifdef SIGRTMIN
   /* This is to check __libc_current_sigrt* can be used in statically
      linked apps.  */
-  return SIGRTMIN;
+  result = SIGRTMIN;
+#endif
+  return result;
 }