diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2015-02-28 16:43:42 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2015-02-28 16:43:42 +0000 |
commit | 76be160faf1473715d1bd1153c7f5bab0bb46a37 (patch) | |
tree | e3aab38d2f9cbdf1510d84c630d2affe3cc41a18 | |
parent | a861364bb67714b4182adc5d021165ca7cffdf47 (diff) | |
download | ports-76be160faf1473715d1bd1153c7f5bab0bb46a37.tar.gz ports-76be160faf1473715d1bd1153c7f5bab0bb46a37.zip |
- Fix build with Clang 3.6.0
PR: 198007
Submitted by: dim
Notes
Notes:
svn path=/head/; revision=380152
-rw-r--r-- | devel/rubygem-nio4r/files/patch-ext-libev-ev.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/devel/rubygem-nio4r/files/patch-ext-libev-ev.c b/devel/rubygem-nio4r/files/patch-ext-libev-ev.c new file mode 100644 index 000000000000..ea18f5630357 --- /dev/null +++ b/devel/rubygem-nio4r/files/patch-ext-libev-ev.c @@ -0,0 +1,18 @@ +--- ext/libev/ev.c.orig 2015-02-24 21:22:11.038934000 +0100 ++++ ext/libev/ev.c 2015-02-24 21:23:03.298987000 +0100 +@@ -1026,12 +1026,12 @@ + } + #endif + +-#if ECB_GCC_VERSION(4,5) ++#if ECB_GCC_VERSION(4,5) || defined __clang__ + #define ecb_unreachable() __builtin_unreachable () + #else + /* this seems to work fine, but gcc always emits a warning for it :/ */ +- ecb_inline void ecb_unreachable (void) ecb_noreturn; +- ecb_inline void ecb_unreachable (void) { } ++ ecb_inline void ecb_noreturn ecb_unreachable (void); ++ ecb_inline void ecb_noreturn ecb_unreachable (void) { } + #endif + + /* try to tell the compiler that some condition is definitely true */ |