[PATCH] erofs-utils: get rid of useless (l)stat64 for MacOS

Gao Xiang hsiangkao at linux.alibaba.com
Sun Sep 10 21:57:44 AEST 2023


It breaks the MacOS build [1] and actually it has no use anymore
after commit 7715b294087e ("erofs-utils: configure: Use 64bit off_t").

[1] https://github.com/erofs/erofsnightly/actions/runs/6134394959/job/16647166641
Signed-off-by: Gao Xiang <hsiangkao at linux.alibaba.com>
---
 include/erofs/defs.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/include/erofs/defs.h b/include/erofs/defs.h
index 20f9741..fefa7e7 100644
--- a/include/erofs/defs.h
+++ b/include/erofs/defs.h
@@ -338,11 +338,6 @@ unsigned long __roundup_pow_of_two(unsigned long n)
 #define ST_MTIM_NSEC(stbuf) 0
 #endif
 
-#ifdef __APPLE__
-#define stat64		stat
-#define lstat64		lstat
-#endif
-
 #ifdef __cplusplus
 }
 #endif
-- 
2.24.4



More information about the Linux-erofs mailing list