[Libevent-users] Compiling libevent in MacOS X with Xcode

Marco Bambini marco at sqlabs.net
Tue Nov 6 09:30:18 EST 2007


I am a libevent newbye so it is possible that the fault is on my  
side ... but it seems to me that something should be changed in the  
header files in order to be able to compile libevent with Xcode.
For example u_char definition is missed so the following lines should  
be added to events.h:

#if defined(__APPLE__)
typedef unsigned char u_char;
#endif

and what about _time.h?
Is is really necessary or can I use the standard one?
I receive an error: "redefinition of struct timeval" when I try to  
compile it.

Any help?
---
Marco Bambini
http://www.sqlabs.net
http://www.sqlabs.net/blog/
http://www.sqlabs.net/realsqlserver/





More information about the Libevent-users mailing list