You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.0 KiB

  1. From 97ef6f99b8426ffdc97864fc8bb2d85c87cfdad0 Mon Sep 17 00:00:00 2001
  2. From: Thierry FOURNIER <tfournier@arpalert.org>
  3. Date: Tue, 3 Nov 2015 19:17:37 +0100
  4. Subject: [PATCH 09/10] BUILD: freebsd: double declaration
  5. On freebsd, the macro LIST_PREV already exists in the header file
  6. <sys/queue.h>, and this makes a build error.
  7. This patch removes the macros before declaring it. This ensure
  8. that the error doesn't occurs.
  9. (cherry picked from commit 1db96672c4cd264ebca8197bec93a5ce1b23aaa9)
  10. (cherry picked from commit 6cf9c6b270e57f05abf72cd61f4facb5b6980d57)
  11. ---
  12. include/common/mini-clist.h | 1 +
  13. 1 file changed, 1 insertion(+)
  14. diff --git a/include/common/mini-clist.h b/include/common/mini-clist.h
  15. index 3c3f001..404b6fa 100644
  16. --- a/include/common/mini-clist.h
  17. +++ b/include/common/mini-clist.h
  18. @@ -144,6 +144,7 @@ struct cond_wordlist {
  19. * which contains list head <lh>, which is known as element <el> in
  20. * struct pt.
  21. */
  22. +#undef LIST_PREV
  23. #define LIST_PREV(lh, pt, el) (LIST_ELEM((lh)->p, pt, el))
  24. /*
  25. --
  26. 2.4.10