summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2004-08-31 08:26:39 +0000
committerRoland McGrath <roland@redhat.com>2004-08-31 08:26:39 +0000
commit55a00f8092d9596a4ca619017bfba0dea2e085d1 (patch)
tree2a013130d962a44de38b3685cca295e3f4729af2 /time.c
parent0ef93b71eac2ea8c08aaf5c02697b5cbcf3a7b46 (diff)
downloadstrace-55a00f8092d9596a4ca619017bfba0dea2e085d1.tar.gz
strace-55a00f8092d9596a4ca619017bfba0dea2e085d1.tar.bz2
strace-55a00f8092d9596a4ca619017bfba0dea2e085d1.tar.xz
2004-08-31 Roland McGrath <roland@redhat.com>
* time.c (clocknames): Use #ifdef around CLOCK_* uses.
Diffstat (limited to 'time.c')
-rw-r--r--time.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/time.c b/time.c
index 28c05bd..da20f35 100644
--- 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 */
-