From 5af99c65de871a964c7a197212503e2e3a946766 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Fri, 30 Jun 2023 08:11:47 +0800 Subject: [PATCH] fs: Define __USE_FILE_OFFSET64 when CONFIG_FS_LARGEFILE is enabled Signed-off-by: Xiang Xiao --- include/sys/types.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/sys/types.h b/include/sys/types.h index 2d77b54fdf..230a605cab 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -84,6 +84,7 @@ #define SCHED_PRIORITY_IDLE 0 #if defined(CONFIG_FS_LARGEFILE) +# define __USE_FILE_OFFSET64 1 # define fsblkcnt64_t fsblkcnt_t # define fsfilcnt64_t fsfilcnt_t # define blkcnt64_t blkcnt_t