Date: Thu, 21 Jul 2016 17:47:02 +0000 (UTC) From: Hajimu UMEMOTO <ume@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r418883 - head/lang/ruby23/files Message-ID: <201607211747.u6LHl2TE064336@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ume Date: Thu Jul 21 17:47:02 2016 New Revision: 418883 URL: https://svnweb.freebsd.org/changeset/ports/418883 Log: Fix build on FreeBSD 11 and later. Reported by: KIRIYAMA Kazuhiko <kiri [...] kx.openedu.org> Tested by: Kurt Jaeger <lists [...] opsec.eu>, "Herbert J. Skuhra" <herbert [...] mailbox.org> Added: head/lang/ruby23/files/patch-ccan_list_list.h (contents, props changed) head/lang/ruby23/files/patch-thread__pthread.c (contents, props changed) Added: head/lang/ruby23/files/patch-ccan_list_list.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/ruby23/files/patch-ccan_list_list.h Thu Jul 21 17:47:02 2016 (r418883) @@ -0,0 +1,22 @@ +--- ccan/list/list.h.orig 2015-09-06 07:10:54 UTC ++++ ccan/list/list.h +@@ -57,7 +57,7 @@ struct list_head + * Example: + * static struct list_head my_list = LIST_HEAD_INIT(my_list); + */ +-#define LIST_HEAD_INIT(name) { { &name.n, &name.n } } ++#define CCAN_LIST_HEAD_INIT(name) { { &name.n, &name.n } } + + /** + * LIST_HEAD - define and initialize an empty list_head +@@ -72,8 +72,8 @@ struct list_head + * Example: + * static LIST_HEAD(my_global_list); + */ +-#define LIST_HEAD(name) \ +- struct list_head name = LIST_HEAD_INIT(name) ++#define CCAN_LIST_HEAD(name) \ ++ struct list_head name = CCAN_LIST_HEAD_INIT(name) + + /** + * list_head_init - initialize a list_head Added: head/lang/ruby23/files/patch-thread__pthread.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/ruby23/files/patch-thread__pthread.c Thu Jul 21 17:47:02 2016 (r418883) @@ -0,0 +1,11 @@ +--- thread_pthread.c.orig 2016-04-15 16:07:07 UTC ++++ thread_pthread.c +@@ -1154,7 +1154,7 @@ native_sleep(rb_thread_t *th, struct tim + } + + #ifdef USE_UBF_LIST +-static LIST_HEAD(ubf_list_head); ++static CCAN_LIST_HEAD(ubf_list_head); + + /* The thread 'th' is registered to be trying unblock. */ + static void
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607211747.u6LHl2TE064336>