Linux-EROFS Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Gao Xiang <hsiangkao@linux.alibaba.com>
To: linux-erofs@lists.ozlabs.org
Cc: Gao Xiang <hsiangkao@linux.alibaba.com>
Subject: [PATCH] erofs-utils: get rid of useless (l)stat64 for MacOS
Date: Sun, 10 Sep 2023 19:57:44 +0800	[thread overview]
Message-ID: <20230910115744.83819-1-hsiangkao@linux.alibaba.com> (raw)

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@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


                 reply	other threads:[~2023-09-10 11:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230910115744.83819-1-hsiangkao@linux.alibaba.com \
    --to=hsiangkao@linux.alibaba.com \
    --cc=linux-erofs@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox