mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Fix compilation on OSX Sierra (10.12)
This commit is contained in:
parent
ec19ecce4b
commit
1eba088054
@ -986,6 +986,7 @@ AC_CHECK_HEADERS(
|
||||
sys/mman.h \
|
||||
sys/param.h \
|
||||
sys/prctl.h \
|
||||
sys/random.h \
|
||||
sys/resource.h \
|
||||
sys/select.h \
|
||||
sys/socket.h \
|
||||
|
@ -247,7 +247,7 @@ tor_cond_wait(tor_cond_t *cond, tor_mutex_t *mutex, const struct timeval *tv)
|
||||
return -1;
|
||||
}
|
||||
tvnow.tv_sec = ts.tv_sec;
|
||||
tvnow.tv_usec = ts.tv_nsec / 1000;
|
||||
tvnow.tv_usec = (int)(ts.tv_nsec / 1000);
|
||||
timeradd(tv, &tvnow, &tvsum);
|
||||
#else
|
||||
if (gettimeofday(&tvnow, NULL) < 0)
|
||||
|
@ -77,6 +77,9 @@
|
||||
#ifdef HAVE_SYS_SYSCALL_H
|
||||
#include <sys/syscall.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_RANDOM_H
|
||||
#include <sys/random.h>
|
||||
#endif
|
||||
|
||||
#include "torlog.h"
|
||||
#include "aes.h"
|
||||
|
Loading…
Reference in New Issue
Block a user