From: Thierry FOURNIER Date: Tue, 3 Nov 2015 18:17:37 +0000 (+0100) Subject: BUILD: freebsd: double declaration X-Git-Tag: v1.7-dev1~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1db96672c4cd264ebca8197bec93a5ce1b23aaa9;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/include/common/mini-clist.h b/include/common/mini-clist.h index cb905da096..da24b3379d 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)) /*