[tor-commits] [tor/master] compat_threads.c needs string.h for memset.

nickm at torproject.org nickm at torproject.org
Thu Jun 28 19:21:00 UTC 2018


commit b67754cd6484e9a844faec5d0071fc07497b8f30
Author: Nick Mathewson <nickm at torproject.org>
Date:   Thu Jun 28 15:20:26 2018 -0400

    compat_threads.c needs string.h for memset.
---
 src/lib/thread/compat_threads.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/thread/compat_threads.c b/src/lib/thread/compat_threads.c
index 1d685b2c3..972960e24 100644
--- a/src/lib/thread/compat_threads.c
+++ b/src/lib/thread/compat_threads.c
@@ -18,6 +18,8 @@
 #include "lib/log/torlog.h"
 #include "lib/log/util_bug.h"
 
+#include <string.h>
+
 /** Allocate and return a new condition variable. */
 tor_cond_t *
 tor_cond_new(void)



More information about the tor-commits mailing list