[Libevent-users] [PATCH] fixes for better Solaris support
Harry Kao
hkao-co at appliedminds.com
Thu May 3 23:18:26 EDT 2007
Here's a patch against svn trunk to make libevent compile under
Solaris using Sun Studio. The main changes are:
- Changed __inline to inline.
- Changed u_intX_t to uintX_t. This was changed in event_rpcgen.py
as well. I don't use that script so I hope this was the right
thing to do...
- Added code to configure.in to detect the libraries needed to link
in socket code. (This adds -lnsl -lresolv on Solaris.)
- Fixed #includes in devpoll.c and evsignal.h to pull in required
headers.
- Removed volatile keyword from evsignal_info.evsignal_caught. I'm
not sure why that was volatile in the first place.
It still doesn't build very cleanly, but at least it builds... I've
done limited testing on solaris-amd64, linux-amd64, linux-i386,
mac-intel, and mac-ppc. I hope that more experienced eyes can look
this over and make sure that I haven't broken anything. Thanks!
Harry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: solaris.diff
Type: text/x-diff
Size: 15728 bytes
Desc: not available
Url : http://monkeymail.org/archives/libevent-users/attachments/20070503/febccc96/solaris-0001.bin
More information about the Libevent-users
mailing list