diff options
author | robak <robak@FreeBSD.org> | 2015-03-19 23:52:10 +0800 |
---|---|---|
committer | robak <robak@FreeBSD.org> | 2015-03-19 23:52:10 +0800 |
commit | e87936c9d148485186d1668ee44dcb34343c2a79 (patch) | |
tree | e31cb6fffc73ef4c70c31e0dc639043a0922b522 /mail | |
parent | 9c6c6c9b9b185cecec6141c577abdf074d74b7f9 (diff) | |
download | freebsd-ports-gnome-e87936c9d148485186d1668ee44dcb34343c2a79.tar.gz freebsd-ports-gnome-e87936c9d148485186d1668ee44dcb34343c2a79.tar.zst freebsd-ports-gnome-e87936c9d148485186d1668ee44dcb34343c2a79.zip |
mail/milter-manager: fix clang 3.6 build
PR: 198207
Submitted by: Dimitry Andric <dim@FreeBSD.org>
Diffstat (limited to 'mail')
-rw-r--r-- | mail/milter-manager/files/patch-libev-4.15__ev.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mail/milter-manager/files/patch-libev-4.15__ev.c b/mail/milter-manager/files/patch-libev-4.15__ev.c new file mode 100644 index 000000000000..023b01c652a9 --- /dev/null +++ b/mail/milter-manager/files/patch-libev-4.15__ev.c @@ -0,0 +1,18 @@ +--- libev-4.15/ev.c.orig 2014-05-20 06:54:23.272151000 +0200 ++++ libev-4.15/ev.c 2015-03-02 21:52:59.621578000 +0100 +@@ -963,12 +963,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 */ |