summaryrefslogtreecommitdiff
path: root/devel/p5-EV
diff options
context:
space:
mode:
authorjoerg <joerg>2014-11-10 18:09:10 +0000
committerjoerg <joerg>2014-11-10 18:09:10 +0000
commitc94c0cccdaa703d6d1321c9a47d53a9b947e9995 (patch)
tree1f3c7f79f691b6edbac34ca345db83511f361c9e /devel/p5-EV
parent0c6e62f767a23eeac1a7da36a83ddf0c3674758b (diff)
downloadpkgsrc-c94c0cccdaa703d6d1321c9a47d53a9b947e9995.tar.gz
Use __builtin_unreachable on Clang instead of the broken C11 hack.
Diffstat (limited to 'devel/p5-EV')
-rw-r--r--devel/p5-EV/distinfo3
-rw-r--r--devel/p5-EV/patches/patch-libev_ev.c13
2 files changed, 15 insertions, 1 deletions
diff --git a/devel/p5-EV/distinfo b/devel/p5-EV/distinfo
index d565be61150..7ba2bb07f8a 100644
--- a/devel/p5-EV/distinfo
+++ b/devel/p5-EV/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.9 2013/09/02 12:23:43 obache Exp $
+$NetBSD: distinfo,v 1.10 2014/11/10 18:09:10 joerg Exp $
SHA1 (EV-4.15.tar.gz) = 87783633d9d93a44ec752ed90490c653a21b4a06
RMD160 (EV-4.15.tar.gz) = 25a7ea50986bed0e31b29fa0e757ecbf29af5733
Size (EV-4.15.tar.gz) = 189514 bytes
+SHA1 (patch-libev_ev.c) = 726cf6454516f23a1a38ce3e3f1296c87ed03329
SHA1 (patch-libev_ev.h) = 349c203b23013e9e836810aadcd5e4df8add032b
diff --git a/devel/p5-EV/patches/patch-libev_ev.c b/devel/p5-EV/patches/patch-libev_ev.c
new file mode 100644
index 00000000000..acf16bf008b
--- /dev/null
+++ b/devel/p5-EV/patches/patch-libev_ev.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-libev_ev.c,v 1.1 2014/11/10 18:09:10 joerg Exp $
+
+--- libev/ev.c.orig 2014-11-09 20:59:37.000000000 +0000
++++ libev/ev.c
+@@ -963,7 +963,7 @@ ecb_inline uint64_t ecb_rotr64 (uint64_t
+ }
+ #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 :/ */