public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* problems with tst-clock_nanosleep fixed
@ 2003-05-17 17:36 Andreas Jaeger
  0 siblings, 0 replies; only message in thread
From: Andreas Jaeger @ 2003-05-17 17:36 UTC (permalink / raw)
  To: GNU libc hacker


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-17 17:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-17 17:36 problems with tst-clock_nanosleep fixed Andreas Jaeger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).