[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [Libevent-users] Compiling libevent on Windows
- To: libevent-users@xxxxxxxxxxxxx
- Subject: Re: [Libevent-users] Compiling libevent on Windows
- From: Nick Mathewson <nickm@xxxxxxxxxxxxx>
- Date: Fri, 13 Aug 2010 12:34:55 -0400
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Fri, 13 Aug 2010 12:35:03 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=3yeQ6dr3Wv/zv7N2Y5yuko06Kv9O/iFJI6cy0evHpUs=; b=W3PcBNTlHa9zRWf8CvdZjZjL802/HM7iQX1bGIHPDlxIc7u+wFWy8ztFpApuUJZoVI 2Oz56eGV5bfrf1+SkHaBVs/nkmRbTvn7H2UvyQSPF0fOEdceiCVVpDXpOg99brlFfFYs qskG9SXnyWz4/7mCIkU1LDOs5jYdwThGWgjDA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=MM2bWCnDhGq47bn9YTazuUJUfqp8/A71ktinRX2ZFBReQzvPnOiaoFqYCQYUePDtkk lpFDv8l4uN5MaH3Geaqn+ULDHIvw6v8p01kSO8oZWFrlsqncXsezDMmtuTIHTUgyO7u2 VZVb5qhzlsOzHxK/7Od7qQJ89EEARWLnIn1Wc=
- In-reply-to: <000001cb3aba$0e8c87d0$2ba59770$@com>
- References: <000001cb3aba$0e8c87d0$2ba59770$@com>
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
On Fri, Aug 13, 2010 at 3:35 AM, Gilad Benjamini
<gilad@xxxxxxxxxxxxxxxxx> wrote:
> I tried compiling libevent on Windows, using WinDDK.
> I initially had some issues with Makefile.nmake, and then abandoned it in
> favor of the simple "sources" file, used by the "build" utility.
Hi, Gilad!
FYI, it is *way way easier* for us to track bugs and patches and make
sure we don't forget about any of them if you upload them to the
appropriate tracker at sourceforge:
https://sourceforge.net/tracker/?group_id=50884
> There were then a few issues that prevent compilation on Windows. I'm
> presenting them as-is and not as a patch, since I don't know Windows well
> enough to vouch for a proper patch
> - signal handler function are defined as "__cdecl" functions
This sounds like it's solvable just by declaring the evsig_handler
function to be __cdecl if WIN32 is defined?
> - fstat doesn't exist, but _fstat does
The usual fix for this one is to include something like
#ifdef WIN32
#define fstat _fstat
#endif
near the start of the appropriate file.
>
> There was also a decent number of warnings, though nothing major. I'll send
> a patch for these later on.
Neat!
yrs,
--
Nick
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.