]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: freebsd: double declaration
authorThierry FOURNIER <tfournier@arpalert.org>
Tue, 3 Nov 2015 18:17:37 +0000 (19:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 Nov 2015 00:15:02 +0000 (01:15 +0100)
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.

include/common/mini-clist.h

index cb905da096cb123112801dc4bd2517a7b132154d..da24b3379d4cc1d18d0356e9d947e16b80a7f840 100644 (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))
 
 /*