Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Feb 2015 16:43:42 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r380152 - head/devel/rubygem-nio4r/files
Message-ID:  <201502281643.t1SGhgkh062535@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sat Feb 28 16:43:42 2015
New Revision: 380152
URL: https://svnweb.freebsd.org/changeset/ports/380152
QAT: https://qat.redports.org/buildarchive/r380152/

Log:
  - Fix build with Clang 3.6.0
  
  PR:		198007
  Submitted by:	dim

Added:
  head/devel/rubygem-nio4r/files/
  head/devel/rubygem-nio4r/files/patch-ext-libev-ev.c   (contents, props changed)

Added: head/devel/rubygem-nio4r/files/patch-ext-libev-ev.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/rubygem-nio4r/files/patch-ext-libev-ev.c	Sat Feb 28 16:43:42 2015	(r380152)
@@ -0,0 +1,18 @@
+--- ext/libev/ev.c.orig	2015-02-24 21:22:11.038934000 +0100
++++ ext/libev/ev.c	2015-02-24 21:23:03.298987000 +0100
+@@ -1026,12 +1026,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 void ecb_noreturn ecb_unreachable (void);
++  ecb_inline void ecb_noreturn ecb_unreachable (void) { }
+ #endif
+ 
+ /* try to tell the compiler that some condition is definitely true */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502281643.t1SGhgkh062535>