050-build-fix-error-during-out-of-tree-build.patch 1.1 KB

12345678910111213141516171819202122232425262728
  1. From 0ebf52fc951b2a4d98a166afb34af4f364bbeece Mon Sep 17 00:00:00 2001
  2. From: Ben Brown <ben@demerara.io>
  3. Date: Wed, 25 May 2022 16:26:13 +0100
  4. Subject: build: Fix error during out of tree build
  5. Fixes the following error:
  6. ../../libxtables/xtables.c:52:10: fatal error: libiptc/linux_list.h: No such file or directory
  7. 52 | #include <libiptc/linux_list.h>
  8. Fixes: f58b0d7406451 ("libxtables: Implement notargets hash table")
  9. Signed-off-by: Ben Brown <ben@demerara.io>
  10. Signed-off-by: Phil Sutter <phil@nwl.cc>
  11. ---
  12. libxtables/Makefile.am | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. --- a/libxtables/Makefile.am
  15. +++ b/libxtables/Makefile.am
  16. @@ -1,7 +1,7 @@
  17. # -*- Makefile -*-
  18. AM_CFLAGS = ${regular_CFLAGS}
  19. -AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_builddir}/include -I${top_srcdir}/include -I${top_srcdir}/iptables ${kinclude_CPPFLAGS}
  20. +AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_builddir}/include -I${top_srcdir}/include -I${top_srcdir}/iptables -I${top_srcdir} ${kinclude_CPPFLAGS}
  21. lib_LTLIBRARIES = libxtables.la
  22. libxtables_la_SOURCES = xtables.c xtoptions.c getethertype.c