mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 1/2] avahi: set FILE_OFFSET_BITS to work with 64 bit inodes
@ 2017-07-19  9:59 Bastian Stender
  2017-07-19  9:59 ` [ptxdist] [PATCH 2/2] iptables: " Bastian Stender
  2017-07-19 10:19 ` [ptxdist] [PATCH 1/2] avahi: " Uwe Kleine-König
  0 siblings, 2 replies; 4+ messages in thread
From: Bastian Stender @ 2017-07-19  9:59 UTC (permalink / raw)
  To: ptxdist; +Cc: Bastian Stender

In case of 64 bit inodes calls to 32 bit variants of stat() will cause
EOVERFLOW and avahi 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>
---
 rules/avahi.make | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rules/avahi.make b/rules/avahi.make
index 8a10d15ea..2e796bce4 100644
--- a/rules/avahi.make
+++ b/rules/avahi.make
@@ -83,6 +83,8 @@ AVAHI_CONF_OPT	:= \
 	--with-autoipd-group=$(PTXCONF_AVAHI_AUTOIP_GROUP) \
 	--with-systemdsystemunitdir=/usr/lib/systemd/system
 
+AVAHI_CFLAGS:= -D_FILE_OFFSET_BITS=64
+
 # ----------------------------------------------------------------------------
 # Target-Install
 # ----------------------------------------------------------------------------
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-07-24 12:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-19  9:59 [ptxdist] [PATCH 1/2] avahi: set FILE_OFFSET_BITS to work with 64 bit inodes Bastian Stender
2017-07-19  9:59 ` [ptxdist] [PATCH 2/2] iptables: " Bastian Stender
2017-07-19 10:19 ` [ptxdist] [PATCH 1/2] avahi: " Uwe Kleine-König
2017-07-24 12:16   ` Bastian Stender

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox