2021-12-12 11:55:43 +00:00
|
|
|
fix stat64 issue for modern macos versions (including macos arm64)
|
|
|
|
|
|
|
|
--- a/tools/rpcgen/rpc_main.c
|
|
|
|
+++ b/tools/rpcgen/rpc_main.c
|
2023-02-22 16:38:26 +00:00
|
|
|
@@ -68,6 +68,12 @@
|
|
|
|
# endif
|
|
|
|
#endif
|
2021-12-12 11:55:43 +00:00
|
|
|
|
|
|
|
+#ifdef __APPLE__
|
|
|
|
+# if __DARWIN_ONLY_64_BIT_INO_T
|
|
|
|
+# define stat64 stat
|
|
|
|
+# endif
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
struct commandline
|
|
|
|
{
|
|
|
|
int cflag; /* xdr C routines */
|