]> granicus.if.org Git - strace/commitdiff
2004-08-31 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Tue, 31 Aug 2004 08:26:39 +0000 (08:26 +0000)
committerRoland McGrath <roland@redhat.com>
Tue, 31 Aug 2004 08:26:39 +0000 (08:26 +0000)
* time.c (clocknames): Use #ifdef around CLOCK_* uses.

time.c

diff --git a/time.c b/time.c
index 28c05bd28243fd652d57e185b6a33dece53fc441..da20f35e2a6c65acd4bc927947d9c7466f6e76e2 100644 (file)
--- a/time.c
+++ b/time.c
@@ -54,7 +54,7 @@ long addr;
 }
 
 #ifdef ALPHA
-struct timeval32 
+struct timeval32
 {
     unsigned tv_sec;
     unsigned tv_usec;
@@ -365,8 +365,12 @@ static struct xlat clockflags[] = {
 };
 
 static struct xlat clocknames[] = {
+#ifdef CLOCK_REALTIME
   { CLOCK_REALTIME, "CLOCK_REALTIME" },
+#endif
+#ifdef CLOCK_MONOTONIC
   { CLOCK_MONOTONIC, "CLOCK_MONOTONIC" },
+#endif
   { 0,             NULL }
 };
 
@@ -510,4 +514,3 @@ struct tcb *tcp;
        return 0;
 }
 #endif /* LINUX */
-