aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-02-28 16:43:42 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2015-02-28 16:43:42 +0000
commit76be160faf1473715d1bd1153c7f5bab0bb46a37 (patch)
treee3aab38d2f9cbdf1510d84c630d2affe3cc41a18
parenta861364bb67714b4182adc5d021165ca7cffdf47 (diff)
downloadports-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.c18
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 */