libecb patch: fix compile warnings on gcc-llvm 4.2.1 (OS X 10.6 with Xcode 4)

Hongli Lai hongli at phusion.nl
Thu Dec 8 21:46:24 CET 2011


ecb.h currently generates tons of warnings on gcc-llvm 4.2.1 (OS X
10.6 with Xcode 4) because the ECB_GCC_VERSION macro blacklists llvm.
This causes ecb.h to think that __attribute__ and other gcc extension
keywords are not supported when they in fact are. The attached patch
fixes this problem and also fixes a few more compilation warnings by
replacing the 'ecb_inline' in front of some function definitions with
'ecb_function_'.

-- 
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: info at phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-ecb.h-compatibility-with-GCC-LLVM-4.2.1-on-OS-X-.patch
Type: application/octet-stream
Size: 4806 bytes
Desc: not available
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20111208/bab4d8a8/attachment.obj>


More information about the libev mailing list