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

Hongli Lai hongli at
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

Phusion | Ruby & Rails deployment, scaling and tuning solutions

E-mail: info at
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: <>

More information about the libev mailing list