From 1db96672c4cd264ebca8197bec93a5ce1b23aaa9 Mon Sep 17 00:00:00 2001 From: Thierry FOURNIER Date: Tue, 3 Nov 2015 19:17:37 +0100 Subject: [PATCH] BUILD: freebsd: double declaration On freebsd, the macro LIST_PREV already exists in the header file , and this makes a build error. This patch removes the macros before declaring it. This ensure that the error doesn't occurs. --- include/common/mini-clist.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/common/mini-clist.h b/include/common/mini-clist.h index cb905da09..da24b3379 100644 --- a/include/common/mini-clist.h +++ b/include/common/mini-clist.h @@ -111,6 +111,7 @@ struct cond_wordlist { * which contains list head , which is known as element in * struct pt. */ +#undef LIST_PREV #define LIST_PREV(lh, pt, el) (LIST_ELEM((lh)->p, pt, el)) /*