aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-10-10 12:18:05 -0400
committerNick Mathewson <nickm@torproject.org>2018-10-10 12:19:56 -0400
commit267b8d16b1fdc4e4730893aeee26e4dded97ad2d (patch)
treefaf930a2ac39366181bda97710f8aa0641104904 /src/lib
parenta23c36ebcd6af162fb08999f458faf98571eecbf (diff)
downloadtor-267b8d16b1fdc4e4730893aeee26e4dded97ad2d.tar.gz
tor-267b8d16b1fdc4e4730893aeee26e4dded97ad2d.zip
Add timeval.h include to compat_pthreads.c for timeradd()
OpenSolaris apparently doesn't have timeradd(), so we added a replacement, but we weren't including it here after the big refactoring in 0.3.5.1-alpha. Fixes bug 27963; bugfix on 0.3.5.1-alpha.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/thread/.may_include1
-rw-r--r--src/lib/thread/compat_pthreads.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/thread/.may_include b/src/lib/thread/.may_include
index 93ad0cd734..fc56f46836 100644
--- a/src/lib/thread/.may_include
+++ b/src/lib/thread/.may_include
@@ -4,3 +4,4 @@ lib/lock/*.h
lib/log/*.h
lib/testsupport/*.h
lib/thread/*.h
+lib/wallclock/*.h
diff --git a/src/lib/thread/compat_pthreads.c b/src/lib/thread/compat_pthreads.c
index 934067e4c1..e5c8805ddc 100644
--- a/src/lib/thread/compat_pthreads.c
+++ b/src/lib/thread/compat_pthreads.c
@@ -12,6 +12,7 @@
#include "orconfig.h"
#include "lib/thread/threads.h"
+#include "lib/wallclock/timeval.h"
#include "lib/log/log.h"
#include "lib/log/util_bug.h"