Quoting Marco Bambini <[EMAIL PROTECTED]>:
> 
> 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
_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users

Reply via email to