]> granicus.if.org Git - libevent/commitdiff
Add missing thread imports so that evport.c will build
authorNick Mathewson <nickm@torproject.org>
Tue, 29 Dec 2009 19:38:35 +0000 (14:38 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 29 Dec 2009 19:38:35 +0000 (14:38 -0500)
When I made the changes to release the base lock around the call to
port_getn(), I didn't add evthread-internal.h to the includes in
evport.c would build, and I didn't catch it since I haven't got a
Solaris host to build on.  Tao Feng just reported this on
Libevent-users.

evport.c

index 1baac621168d0b143b3e0bc1d3a27c75db7157a3..a203d8ae69d86b6ad8976a0c00d23f4e7cbb5143 100644 (file)
--- a/evport.c
+++ b/evport.c
@@ -64,6 +64,9 @@
 #include <time.h>
 #include <unistd.h>
 
+#include <event2/thread.h>
+
+#include "evthread-internal.h"
 #include "event-internal.h"
 #include "log-internal.h"
 #include "evsignal-internal.h"