diff options
author | Sergey V. Lobanov <sergey@lobanov.in> | 2022-01-04 12:02:04 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2022-01-04 12:02:04 -0500 |
commit | 252769799eff4c5cd7bac28480385043e781d76e (patch) | |
tree | 50051a25c13369e10eee7dc50172117b3c8f709d | |
parent | ba79e680b50d18125f4d066a45989b17b71289ea (diff) | |
download | nfs-utils-252769799eff4c5cd7bac28480385043e781d76e.tar.gz |
tools/rpcgen: fix build on macos arm64 (stat64 issue)
__DARWIN_ONLY_64_BIT_INO_T is true on macos arm64 so struct stat64
and stat64() are not available. This patch defines stat64 as stat if
__DARWIN_ONLY_64_BIT_INO_T is true
Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | tools/rpcgen/rpc_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/rpcgen/rpc_main.c b/tools/rpcgen/rpc_main.c index e97940b9..277adc6b 100644 --- a/tools/rpcgen/rpc_main.c +++ b/tools/rpcgen/rpc_main.c @@ -62,6 +62,12 @@ #define EXTEND 1 /* alias for TRUE */ #define DONT_EXTEND 0 /* alias for FALSE */ +#ifdef __APPLE__ +# if __DARWIN_ONLY_64_BIT_INO_T +# define stat64 stat +# endif +#endif + struct commandline { int cflag; /* xdr C routines */ |