Work around nyacc #define parsing/evaluation bug.

* lib/linux/time.c: Use "#if defined" instead of "#if".
This commit is contained in:
Danny Milosavljevic 2019-04-11 17:01:02 +02:00 committed by Jan Nieuwenhuizen
parent 8348e80589
commit 92022f95ff
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@
#include <syscall.h>
#include <time.h>
#if SYS_time
#if defined (SYS_time)
time_t
time (time_t * result)
@ -30,7 +30,7 @@ time (time_t * result)
return _sys_call1 (SYS_time, (long) result);
}
#elif SYS_gettimeofday
#elif defined (SYS_gettimeofday)
#include <sys/time.h>