[Libevent-users] Compiling libevent in MacOS X with Xcode
Bruce Walker
bmw at wezel.com
Tue Nov 6 11:47:32 EST 2007
Quoting Marco Bambini <marco at sqlabs.net>:
>
> 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?
You might check out MacPorts.org to see what, if any, patches they apply to build libevent. I use
MacPorts to install and update libevent for development on my Mac and it works perfectly. Currently
installs libevent-1.3e.
(Make sure you get the Leopard package if you are running that.)
-bmw
More information about the Libevent-users
mailing list