summaryrefslogtreecommitdiffstats
path: root/rules/iptables.make
diff options
context:
space:
mode:
authorBastian Stender <bst@pengutronix.de>2017-07-19 11:59:20 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-09-15 08:49:48 +0200
commit2c2794de24e34ddf525498aee609f78b8e85965a (patch)
treea9fb689f1897e8695b9494a0ceba6b3b9ac38296 /rules/iptables.make
parent914a7fd6c80a650158e918e45730f7b463cd818d (diff)
downloadptxdist-2c2794de24e34ddf525498aee609f78b8e85965a.tar.gz
ptxdist-2c2794de24e34ddf525498aee609f78b8e85965a.tar.xz
iptables: set FILE_OFFSET_BITS to work with 64 bit inodes
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 <bst@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/iptables.make')
-rw-r--r--rules/iptables.make2
1 files changed, 2 insertions, 0 deletions
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
# ----------------------------------------------------------------------------