aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorrobak <robak@FreeBSD.org>2015-03-22 23:22:23 +0800
committerrobak <robak@FreeBSD.org>2015-03-22 23:22:23 +0800
commit97ed8bcd65b9c9c0d0c587a2df86a7189661bf57 (patch)
tree3b7056517cd98ea963e3275557a50b801828f1e0 /net
parent19b04eda8d90a8fffe268a2850a23df58824ce02 (diff)
downloadfreebsd-ports-gnome-97ed8bcd65b9c9c0d0c587a2df86a7189661bf57.tar.gz
freebsd-ports-gnome-97ed8bcd65b9c9c0d0c587a2df86a7189661bf57.tar.zst
freebsd-ports-gnome-97ed8bcd65b9c9c0d0c587a2df86a7189661bf57.zip
net/shadowsocks-libev: fix clang 3.6 build
PR: 198194 Submitted by: Dimitry Andric <dim@FreeBSD.org>
Diffstat (limited to 'net')
-rw-r--r--net/shadowsocks-libev/files/patch-libev__ev.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/net/shadowsocks-libev/files/patch-libev__ev.c b/net/shadowsocks-libev/files/patch-libev__ev.c
new file mode 100644
index 000000000000..f485717349ed
--- /dev/null
+++ b/net/shadowsocks-libev/files/patch-libev__ev.c
@@ -0,0 +1,18 @@
+--- libev/ev.c.orig 2015-01-07 13:54:19.000000000 +0100
++++ libev/ev.c 2015-03-02 20:39:18.150956000 +0100
+@@ -1022,12 +1022,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 ecb_noreturn void ecb_unreachable (void);
++ ecb_inline ecb_noreturn void ecb_unreachable (void) { }
+ #endif
+
+ /* try to tell the compiler that some condition is definitely true */