commit 267b8d16b1fdc4e4730893aeee26e4dded97ad2d
parent a23c36ebcd6af162fb08999f458faf98571eecbf
Author: Nick Mathewson <nickm@torproject.org>
Date: Wed, 10 Oct 2018 12:18:05 -0400
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:
3 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/changes/bug27963_timeradd b/changes/bug27963_timeradd
@@ -0,0 +1,4 @@
+ o Minor bugfixes (compilation, opensolaris):
+ - Add a missing include to compat_pthreads.c, to fix compilation
+ on OpenSolaris and its descendants. Fixes bug 27963; bugfix
+ on 0.3.5.1-alpha.
diff --git 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
@@ -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"