Re: [Libevent-users] structure redefinition in _libevent_time.h and winsock2.h

2010-02-12 Thread Shiqing Fan
Hi, Yes, you are right, most of the files are not for Windows. But I think the change for event.c is still necessary. That error might happen if you include winsock2.h before loading libevent in a project. I didn't try it under MinGW or Cygwin, but with Visual Studio, but I think they might

Re: [Libevent-users] structure redefinition in _libevent_time.h and winsock2.h

2010-02-11 Thread Nick Mathewson
On Fri, Feb 5, 2010 at 10:30 AM, Shiqing Fan f...@hlrs.de wrote: Hi, When using libevent 1.4.13 in another project on Windows, we found some structure are redefined in _libevent_time.h and winsock2.h, for example 'struct timeval'. I made a patch to solve this problem, but I'm not sure if

[Libevent-users] structure redefinition in _libevent_time.h and winsock2.h

2010-02-05 Thread Shiqing Fan
Hi, When using libevent 1.4.13 in another project on Windows, we found some structure are redefined in _libevent_time.h and winsock2.h, for example 'struct timeval'. I made a patch to solve this problem, but I'm not sure if it's correct to exclude _libevent_time.h on Windows. Regards,