[tor-commits] [tor/master] Add sys/time.h include back to procmon.c

nickm at torproject.org nickm at torproject.org
Tue Oct 16 12:02:17 UTC 2018


commit d3d6c595571301ac75f15e4669c567929f785051
Author: Nick Mathewson <nickm at torproject.org>
Date:   Wed Oct 10 11:26:38 2018 -0400

    Add sys/time.h include back to procmon.c
---
 changes/bug27990         | 3 +++
 src/lib/evloop/procmon.c | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/changes/bug27990 b/changes/bug27990
new file mode 100644
index 000000000..763eef252
--- /dev/null
+++ b/changes/bug27990
@@ -0,0 +1,3 @@
+  o Minor bugfixes (compilation, netbsd):
+    - Add a missing include back into procmon.c. Fixes bug 27990;
+      bugfix on 0.3.5.1-alpha.
diff --git a/src/lib/evloop/procmon.c b/src/lib/evloop/procmon.c
index e0c26caab..02e167377 100644
--- a/src/lib/evloop/procmon.c
+++ b/src/lib/evloop/procmon.c
@@ -20,6 +20,9 @@
 #ifdef HAVE_ERRNO_H
 #include <errno.h>
 #endif
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
 
 #ifdef _WIN32
 #include <winsock2.h>





More information about the tor-commits mailing list