summaryrefslogtreecommitdiffstats
path: root/lib/boottime.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/boottime.c')
-rw-r--r--lib/boottime.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/boottime.c b/lib/boottime.c
index 335570cc1..a2869a50b 100644
--- a/lib/boottime.c
+++ b/lib/boottime.c
@@ -9,8 +9,11 @@
int get_boot_time(struct timeval *boot_time)
{
+#ifdef CLOCK_BOOTTIME
struct timespec hires_uptime;
- struct timeval lores_uptime, now;
+ struct timeval lores_uptime;
+#endif
+ struct timeval now;
struct sysinfo info;
if (gettimeofday(&now, NULL) != 0) {