diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-10-09 12:51:56 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-10-22 09:32:13 -0400 |
commit | 2695f7e68c23612804c9f74f33701eed4c949d70 (patch) | |
tree | 62aa37426e1f8061f698aa15e0330ce6333a91fa | |
parent | 9f50a92a7e858591f65bb9c6f0a2b164032bccc6 (diff) | |
download | tor-2695f7e68c23612804c9f74f33701eed4c949d70.tar.gz tor-2695f7e68c23612804c9f74f33701eed4c949d70.zip |
timeval.h: Coccinelle cannot understand timercmp.
-rw-r--r-- | src/lib/wallclock/timeval.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/wallclock/timeval.h b/src/lib/wallclock/timeval.h index e632d04a04..897a864416 100644 --- a/src/lib/wallclock/timeval.h +++ b/src/lib/wallclock/timeval.h @@ -69,6 +69,7 @@ } while (0) #endif /* !defined(timersub) */ +#ifndef COCCI #ifndef timercmp /** Replacement for timercmp on platforms that do not have it: returns true * iff the relational operator "op" makes the expression tv1 op tv2 true. @@ -82,5 +83,6 @@ ((tv1)->tv_usec op (tv2)->tv_usec) : \ ((tv1)->tv_sec op (tv2)->tv_sec)) #endif /* !defined(timercmp) */ +#endif #endif /* !defined(TOR_TIMEVAL_H) */ |