From f787603a30f2c78dc857e40e74fe8cd31ec2caae Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Wed, 15 Apr 2020 10:08:49 +0200 Subject: [PATCH] fuse-overlayfs: add missing definitions for _FILE_OFFSET_BITS it caused an issue on armv7h where different versions of dirent struct were used in main.c and in the other files. Regression introduced with c2c2ac5b82fb59322da227d196214b4a58ede634 Closes: https://github.com/containers/fuse-overlayfs/issues/197 Signed-off-by: Giuseppe Scrivano --- direct.c | 1 + plugin-manager.c | 2 ++ utils.c | 3 +++ 3 files changed, 6 insertions(+) diff --git a/direct.c b/direct.c index fee733d..cf53657 100644 --- a/direct.c +++ b/direct.c @@ -19,6 +19,7 @@ */ #define _GNU_SOURCE +#define _FILE_OFFSET_BITS 64 #include diff --git a/plugin-manager.c b/plugin-manager.c index 6a88ad3..19cf20f 100644 --- a/plugin-manager.c +++ b/plugin-manager.c @@ -15,6 +15,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#define _GNU_SOURCE +#define _FILE_OFFSET_BITS 64 #include #include diff --git a/utils.c b/utils.c index 27dd327..2f65918 100644 --- a/utils.c +++ b/utils.c @@ -16,6 +16,9 @@ along with this program. If not, see . */ +#define _GNU_SOURCE +#define _FILE_OFFSET_BITS 64 + #include #include "utils.h" #include