Browse Source

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.
Nick Mathewson 5 years ago
parent
commit
267b8d16b1
3 changed files with 6 additions and 0 deletions
  1. 4 0
      changes/bug27963_timeradd
  2. 1 0
      src/lib/thread/.may_include
  3. 1 0
      src/lib/thread/compat_pthreads.c

+ 4 - 0
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.

+ 1 - 0
src/lib/thread/.may_include

@@ -4,3 +4,4 @@ lib/lock/*.h
 lib/log/*.h
 lib/testsupport/*.h
 lib/thread/*.h
+lib/wallclock/*.h

+ 1 - 0
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"