Files
pkgsrc-ng/net/py-gevent/patches/patch-libev_ev.c
2016-01-21 23:40:00 +01:00

14 lines
422 B
C

$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 :/ */