From d4a161552becafeb1ebb98ec7e28675cb25fc548 Mon Sep 17 00:00:00 2001 From: Gao Xiang Date: Sat, 14 Mar 2020 18:52:56 +0800 Subject: erofs-utils: avoid _LARGEFILE64_SOURCE and _GNU_SOURCE redefinition This patch can be used to resolve the following build errors: compress.c:10: error: "_LARGEFILE64_SOURCE" redefined [-Werror] #define _LARGEFILE64_SOURCE : note: this is the location of the previous definition io.c:9: error: "_LARGEFILE64_SOURCE" redefined [-Werror] #define _LARGEFILE64_SOURCE : note: this is the location of the previous definition Link: https://lore.kernel.org/r/20200314105256.20142-1-hsiangkao@aol.com Reviewed-by: Li Guifu Reviewed-by: Chao Yu Signed-off-by: Gao Xiang --- lib/compress.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/compress.c') diff --git a/lib/compress.c b/lib/compress.c index 8337487..b14ff17 100644 --- a/lib/compress.c +++ b/lib/compress.c @@ -7,7 +7,9 @@ * Created by Miao Xie * with heavy changes by Gao Xiang */ +#ifndef _LARGEFILE64_SOURCE #define _LARGEFILE64_SOURCE +#endif #include #include #include -- cgit v1.2.3