ports/lang/ruby23/files/patch-ccan_list_list.h
Hajimu UMEMOTO 97a72db9ee 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>
2016-07-21 17:47:02 +00:00

22 lines
666 B
C

--- 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