diff options
| author | Ruben Kerkhof <ruben@rubenkerkhof.com> | 2020-03-10 16:50:03 +0100 | 
|---|---|---|
| committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | 2020-03-10 16:53:13 +0100 | 
| commit | 1e20238af5bcfa58ffb70f321e56f510a6ab33d9 (patch) | |
| tree | 0cd2bd36d2cfd736aef59fafa6afa0c7fbc500d5 /lib/seqlock.c | |
| parent | 7cda3a87d130c8f18764ec2e4c986bf30ae25416 (diff) | |
treewide: fix some issues found with -Werror=undef
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
Diffstat (limited to 'lib/seqlock.c')
| -rw-r--r-- | lib/seqlock.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/seqlock.c b/lib/seqlock.c index 588a1175bc..77673146ea 100644 --- a/lib/seqlock.c +++ b/lib/seqlock.c @@ -165,7 +165,7 @@ bool seqlock_timedwait(struct seqlock *sqlo, seqlock_val_t val,  /*   * ABS_REALTIME - used on NetBSD, Solaris and OSX   */ -#if TIME_ABS_REALTIME +#ifdef TIME_ABS_REALTIME  #define time_arg1 &abs_rt  #define time_arg2 NULL  #define time_prep @@ -187,7 +187,7 @@ bool seqlock_timedwait(struct seqlock *sqlo, seqlock_val_t val,  /*   * RELATIVE - used on OpenBSD (might get a patch to get absolute monotime)   */ -#elif TIME_RELATIVE +#elif defined(TIME_RELATIVE)  	struct timespec reltime;  #define time_arg1 abs_monotime_limit  | 
