From baf37a5f9c34b660fdb0eb3f899df1303365c723 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 27 Dec 2019 00:46:50 +0900 Subject: [PATCH] Get rid of LIST_HEAD conflict with a system header on macOS --- vm_dump.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vm_dump.c b/vm_dump.c index 09051cfc32..4bc41f2131 100644 --- a/vm_dump.c +++ b/vm_dump.c @@ -23,6 +23,9 @@ # ifdef __LP64__ # define vm_region_recurse vm_region_recurse_64 # endif +/* that is defined in sys/queue.h, and conflicts with + * ccan/list/list.h */ +# undef LIST_HEAD #endif #include "addr2line.h"