BUILD: freebsd: double declaration

On freebsd, the macro LIST_PREV already exists in the header file
<sys/queue.h>, and this makes a build error.

This patch removes the macros before declaring it. This ensure
that the error doesn't occurs.
This commit is contained in:
Thierry FOURNIER 2015-11-03 19:17:37 +01:00 committed by Willy Tarreau
parent c93242cab9
commit 1db96672c4

View File

@ -111,6 +111,7 @@ struct cond_wordlist {
* which contains list head <lh>, which is known as element <el> in
* struct pt.
*/
#undef LIST_PREV
#define LIST_PREV(lh, pt, el) (LIST_ELEM((lh)->p, pt, el))
/*