diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-09-15 16:15:27 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-15 16:24:21 -0400 |
commit | 7a597718bb9cda3dd553c2b12fd42f04ead44c85 (patch) | |
tree | 4f469c213ce1a688c8bf4c8f6874823117e705f9 /src/common/compat_pthreads.c | |
parent | 40ce9819dd7c589f624715c9c800cff714140a70 (diff) | |
download | tor-7a597718bb9cda3dd553c2b12fd42f04ead44c85.tar.gz tor-7a597718bb9cda3dd553c2b12fd42f04ead44c85.zip |
Split some long #if lines to make the #endif annotator happy
Diffstat (limited to 'src/common/compat_pthreads.c')
-rw-r--r-- | src/common/compat_pthreads.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/compat_pthreads.c b/src/common/compat_pthreads.c index 8e4b833573..f50f5d1f37 100644 --- a/src/common/compat_pthreads.c +++ b/src/common/compat_pthreads.c @@ -201,7 +201,8 @@ tor_cond_init(tor_cond_t *cond) } #if defined(HAVE_CLOCK_GETTIME) -#if defined(CLOCK_MONOTONIC) && defined(HAVE_PTHREAD_CONDATTR_SETCLOCK) +#if defined(HAVE_PTHREAD_CONDATTR_SETCLOCK) && \ + defined(CLOCK_MONOTONIC) /* Use monotonic time so when we timedwait() on it, any clock adjustment * won't affect the timeout value. */ if (pthread_condattr_setclock(&condattr, CLOCK_MONOTONIC)) { |