erofs-utils: get rid of useless (l)stat64 for MacOS
authorGao Xiang <hsiangkao@linux.alibaba.com>
Sun, 10 Sep 2023 11:57:44 +0000 (19:57 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Mon, 11 Sep 2023 03:21:47 +0000 (11:21 +0800)
They break the MacOS build [1] and actually have 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@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230910115744.83819-1-hsiangkao@linux.alibaba.com
include/erofs/defs.h

index 20f97413b6a24b4e70c09ed4d9cf0834931c8d91..fefa7e7bd708eb69813239c9b967e753f6463b0a 100644 (file)
@@ -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