mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Merge branch 'maint-0.2.7'
This commit is contained in:
commit
3317cd3a1f
4
changes/bug17819
Normal file
4
changes/bug17819
Normal file
@ -0,0 +1,4 @@
|
||||
o Minor bugfixes (compilation):
|
||||
- Don't try to use the pthrad_condattr_setclock() function unless
|
||||
it actually exists. Fixes compilation on NetBSD-6.x. Fixes bug
|
||||
17819; bugfix on 0.2.6.3-alpha.
|
@ -422,6 +422,7 @@ AC_CHECK_FUNCS(
|
||||
if test "$bwin32" != true; then
|
||||
AC_CHECK_HEADERS(pthread.h)
|
||||
AC_CHECK_FUNCS(pthread_create)
|
||||
AC_CHECK_FUNCS(pthread_condattr_setclock)
|
||||
fi
|
||||
|
||||
if test "$bwin32" = true; then
|
||||
|
@ -185,7 +185,8 @@ tor_cond_init(tor_cond_t *cond)
|
||||
return -1;
|
||||
}
|
||||
|
||||
#if defined(HAVE_CLOCK_GETTIME) && defined(CLOCK_MONOTONIC)
|
||||
#if defined(HAVE_CLOCK_GETTIME) && defined(CLOCK_MONOTONIC) \
|
||||
&& defined(HAVE_PTHREAD_CONDATTR_SETCLOCK)
|
||||
/* 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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user