diff options
author | joerg <joerg@pkgsrc.org> | 2014-11-10 18:09:10 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2014-11-10 18:09:10 +0000 |
commit | 0fd4eb5204ab1123850922aa2e3a3d1c65b5af12 (patch) | |
tree | 1f3c7f79f691b6edbac34ca345db83511f361c9e /net | |
parent | 3237cf6d95b9975f9981017fbaf4118c2cb9e459 (diff) | |
download | pkgsrc-0fd4eb5204ab1123850922aa2e3a3d1c65b5af12.tar.gz |
Use __builtin_unreachable on Clang instead of the broken C11 hack.
Diffstat (limited to 'net')
-rw-r--r-- | net/py-gevent/distinfo | 3 | ||||
-rw-r--r-- | net/py-gevent/patches/patch-libev_ev.c | 13 |
2 files changed, 15 insertions, 1 deletions
diff --git a/net/py-gevent/distinfo b/net/py-gevent/distinfo index 38730e26678..3907297ae92 100644 --- a/net/py-gevent/distinfo +++ b/net/py-gevent/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.1 2014/06/08 22:36:22 rodent Exp $ +$NetBSD: distinfo,v 1.2 2014/11/10 18:09:11 joerg Exp $ SHA1 (gevent-1.0.1.tar.gz) = 2cc1b6e1fa29b30ea881fa6a195e57faaf089ae8 RMD160 (gevent-1.0.1.tar.gz) = 430fb627b4f7350969e2e0bfc45eedaf18aa6325 Size (gevent-1.0.1.tar.gz) = 1455636 bytes +SHA1 (patch-libev_ev.c) = c62c0babc31c89ec8e2fd945ec0042e65c8e016e diff --git a/net/py-gevent/patches/patch-libev_ev.c b/net/py-gevent/patches/patch-libev_ev.c new file mode 100644 index 00000000000..a7be582c78b --- /dev/null +++ b/net/py-gevent/patches/patch-libev_ev.c @@ -0,0 +1,13 @@ +$NetBSD: patch-libev_ev.c,v 1.1 2014/11/10 18:09:11 joerg Exp $ + +--- libev/ev.c.orig 2014-11-10 12:40:39.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 :/ */ |