mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
Fix sharity-light for the new world order in -CURRENT, where NFS
has been split into nfsclient and nfsserver. This fix still leaves a 2 week window of breakage, because __FreeBSD_version wasn't bumped for the change.
This commit is contained in:
parent
faffe1d225
commit
3f64415099
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=48686
20
net/sharity-light/files/patch-ae
Normal file
20
net/sharity-light/files/patch-ae
Normal file
@ -0,0 +1,20 @@
|
||||
--- nfs/syscalls.c.orig Thu Oct 11 14:20:28 2001
|
||||
+++ nfs/syscalls.c Thu Oct 11 14:20:33 2001
|
||||
@@ -56,7 +56,16 @@
|
||||
#define NFSX_V2FH 32
|
||||
#ifdef BSD4_4_LITE2
|
||||
# include <nfs/rpcv2.h>
|
||||
-# include <nfs/nfs.h>
|
||||
+# if (__FreeBSD_version >= 500024)
|
||||
+#
|
||||
+# /* XXX __FreeBSD_version 500024 is the closest we have to the
|
||||
+# NFS reorganization that took place 2001-09-18. This leaves
|
||||
+# a 2 week window. */
|
||||
+#
|
||||
+# include <nfsclient/nfs.h>
|
||||
+# else
|
||||
+# include <nfs/nfs.h>
|
||||
+# endif
|
||||
#endif
|
||||
int syscall_mount(char *dir, void *root_fh, int sock_fd,
|
||||
struct sockaddr_in *socket, char *mntfrom)
|
Loading…
Reference in New Issue
Block a user