This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

problems with tst-clock_nanosleep fixed


Running the testsuite on x86-64 I get:

tst-clock_nanosleep.c: In function `do_test':
tst-clock_nanosleep.c:36: warning: implicit declaration of function `clock_nanosleep'
tst-clock_nanosleep.c:36: error: `CLOCK_REALTIME' undeclared (first use in this function)
tst-clock_nanosleep.c:36: error: (Each undeclared identifier is reported only once

I've committed the appended patch to fix this,

Andreas

2003-05-17  Andreas Jaeger  <aj@suse.de>

	* rt/tst-clock_nanosleep.c: Include <time.h> for clock_nanosleep.

============================================================
Index: rt/tst-clock_nanosleep.c
--- rt/tst-clock_nanosleep.c	17 May 2003 06:04:51 -0000	1.1
+++ rt/tst-clock_nanosleep.c	17 May 2003 17:36:35 -0000
@@ -20,6 +20,7 @@
 #include <stdio.h>
 #include <unistd.h>
 #include <sys/time.h>
+#include <time.h>
 
 
 /* Test that clock_nanosleep() does sleep.  */

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]