about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-02-06 12:30:58 -0800
committerRoland McGrath <roland@hack.frob.com>2015-02-06 12:30:58 -0800
commit1ac074e66e8ee0e548742fcc79a705284448aea6 (patch)
tree26487dfbb1b535fdc25d4404646714a8f65169cc
parentf50ad78b919d7c6302e16d56f63c356abf5637b5 (diff)
downloadglibc-1ac074e66e8ee0e548742fcc79a705284448aea6.tar.gz
glibc-1ac074e66e8ee0e548742fcc79a705284448aea6.tar.xz
glibc-1ac074e66e8ee0e548742fcc79a705284448aea6.zip
Conditionalize use of SIGRTMIN in nptl/tst-locale1.c.
-rw-r--r--ChangeLog2
-rw-r--r--nptl/tst-locale1.c6
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5b694e4133..76bfa13b20 100644
--- 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.
 
diff --git a/nptl/tst-locale1.c b/nptl/tst-locale1.c
index 2ee4c3fbce..887b9a6dd7 100644
--- a/nptl/tst-locale1.c
+++ b/nptl/tst-locale1.c
@@ -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;
 }