[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: Re: [Libevent-users] libevent 2.0.3-alpha compilation on Solaris 5.10 i386



On Wed, Dec 30, 2009 at 12:15:22AM +0800, Tao Feng wrote:
> I just setup my Solaris to compile libevent repo. I saw the fix,
> that should fix something but not completely. The warnings are still
> there. Now I get error:

Does the attached patch help?  If so, I'll merge it.

-- 
Nick


From 8111fac0650c6e4dbb296dfc8f63453e4532f30b Mon Sep 17 00:00:00 2001
From: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Tue, 29 Dec 2009 14:38:35 -0500
Subject: [PATCH] Add missing thread imports so that evport.c will build

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 |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/evport.c b/evport.c
index 1baac62..a203d8a 100644
--- 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"
-- 
1.6.0.5