diff --git a/lib/linux/time.c b/lib/linux/time.c index ac1b3578..30d9a064 100644 --- a/lib/linux/time.c +++ b/lib/linux/time.c @@ -26,7 +26,7 @@ /* Linux' SYS_time syscall is a compatibility shim for SYS_gettimeofday. Therefore, prefer SYS_gettimeofday. */ -#if SYS_gettimeofday +#if defined (SYS_gettimeofday) #include @@ -42,7 +42,7 @@ time (time_t * result) return tv.tv_sec; } -#elif SYS_time +#elif defined (SYS_time) time_t time (time_t * result)