[PATCH] Fix 3 NPTL testcases

Jakub Jelinek jakub@redhat.com
Tue Oct 5 17:47:00 GMT 2004


Hi!

2004-10-05  Jakub Jelinek  <jakub@redhat.com>

	* tst-clock1.c: Change #ifdef to #if defined.
	* tst-clock2.c: Likewise.
	* tst-cond11.c: Likewise.

--- libc/nptl/tst-clock1.c.jj	2004-10-05 09:04:45.000000000 +0200
+++ libc/nptl/tst-clock1.c	2004-10-05 19:45:32.300366959 +0200
@@ -27,7 +27,7 @@
 int
 do_test (void)
 {
-#ifdef _POSIX_THREAD_CPUTIME && _POSIX_THREAD_CPUTIME >= 0
+#if defined _POSIX_THREAD_CPUTIME && _POSIX_THREAD_CPUTIME >= 0
   clockid_t cl;
   /* This is really only a linking-test here.  */
   int e = pthread_getcpuclockid (pthread_self (), &cl);
--- libc/nptl/tst-cond11.c.jj	2004-10-05 09:04:45.000000000 +0200
+++ libc/nptl/tst-cond11.c	2004-10-05 19:46:08.952869926 +0200
@@ -24,7 +24,7 @@
 #include <unistd.h>
 
 
-#ifdef _POSIX_CLOCK_SELECTION && _POSIX_CLOCK_SELECTION >= 0
+#if defined _POSIX_CLOCK_SELECTION && _POSIX_CLOCK_SELECTION >= 0
 static int
 run_test (clockid_t cl)
 {
--- libc/nptl/tst-clock2.c.jj	2004-10-05 09:04:45.000000000 +0200
+++ libc/nptl/tst-clock2.c	2004-10-05 19:45:45.224076121 +0200
@@ -25,7 +25,7 @@
 #include <unistd.h>
 
 
-#ifdef _POSIX_THREAD_CPUTIME && _POSIX_THREAD_CPUTIME >= 0
+#if defined _POSIX_THREAD_CPUTIME && _POSIX_THREAD_CPUTIME >= 0
 static pthread_barrier_t b2;
 static pthread_barrier_t bN;
 

	Jakub



More information about the Libc-hacker mailing list