aboutsummaryrefslogtreecommitdiff
path: root/net/nfs-kernel-server/patches/200-fix-macos-build.patch
blob: 0509e51289985c28457db538b006025d94674bb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
fix stat64 issue for modern macos versions (including macos arm64)

--- a/tools/rpcgen/rpc_main.c
+++ b/tools/rpcgen/rpc_main.c
@@ -68,6 +68,12 @@
 # endif
 #endif
 
+#ifdef __APPLE__
+# if __DARWIN_ONLY_64_BIT_INO_T
+#  define stat64 stat
+# endif
+#endif
+
 struct commandline
   {
     int cflag;			/* xdr C routines */