Hi all,

On Sat, Jul 25, 2009 at 1:13 PM, Nick Mathewson<ni...@freehaven.net> wrote:
> On Sat, Jul 25, 2009 at 01:07:40PM +0900, Brodie Thiesfield wrote:
>> On Fri, Jul 24, 2009 at 9:42 PM, q6Yr7e0o
>> nIJDVMjC<u9oqc...@googlemail.com> wrote:
>> > Would it be possible to create cmake scripts for 2.x, too since they
>> > will much likely be included into the release
>>
>> I'll look into it, but at the moment I'm using 1.4.* releases.
>
> Thanks!  That would be much appreciated.  I don't know if it will
> become our primary build tool or not (we'll have to see how it works
> out), but it would sure be nice to make the MSVC people happy.

The attached diff file is a first run at creating an event2 build for win32.

There are a number of changes for headers files, mostly to ensure that
winsock2.h is included before windows.h. I suggest that ensuring that
all source files include a single top level header, or that all event2
headers include the top level header and then defining the required
files there would be cleaner.

winsock2.h also defines the timeval structure and some other stuff
that is currently defined in compat/sys/_time.h so there is a few
changes to fix that up.

Some changes to ensure that all programs use the evutil_strcasecmp
etc, and the event_socket_t and CLOSE_SOCKET macros (in regress I
think).

You can see in the diff anyhow. The diff includes the cmake files.

It works for me with VC2003 and VC2008. The regress test harness runs
with 3 errors.

Cheers,
Brodie

Attachment: event2-win.diff
Description: Binary data

_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users

Reply via email to