In case of 64 bit inodes calls to 32 bit variants of stat() will cause
EOVERFLOW and iptables will terminate with

  Value too large for defined data type

FILE_OFFSET_BITS=64 makes the code receive 64 bit values.

Signed-off-by: Bastian Stender <b...@pengutronix.de>
---
 rules/iptables.make | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rules/iptables.make b/rules/iptables.make
index c6effca35..721030aac 100644
--- a/rules/iptables.make
+++ b/rules/iptables.make
@@ -51,6 +51,8 @@ IPTABLES_CONF_OPT     := \
        --with-kernel=$(KERNEL_HEADERS_DIR) \
        --with-xtlibdir=/usr/lib
 
+IPTABLES_CFLAGS:= -D_FILE_OFFSET_BITS=64
+
 # ----------------------------------------------------------------------------
 # Install
 # ----------------------------------------------------------------------------
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to