diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2004-05-04 10:42:11 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2004-05-04 10:42:11 +0000 |
commit | b81de764116dbccade13726d0b90fc82f2f5a5c1 (patch) | |
tree | 83218d2eee47127a8b530d1509bedc479f97d5a8 /net | |
parent | 32de085a3a78c9fb2d4590ac928e81136126f80a (diff) |
Fix build on recent 5.x.
Submitted by: mux
Notes
Notes:
svn path=/head/; revision=108359
Diffstat (limited to 'net')
-rw-r--r-- | net/sharity-light/files/patch-ae | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/net/sharity-light/files/patch-ae b/net/sharity-light/files/patch-ae index 5c117215c290..f7ac372b96cd 100644 --- a/net/sharity-light/files/patch-ae +++ b/net/sharity-light/files/patch-ae @@ -1,5 +1,5 @@ ---- nfs/syscalls.c.orig Tue Jun 30 12:24:56 1998 -+++ nfs/syscalls.c Tue Nov 18 16:52:35 2003 +--- nfs/syscalls.c.orig Tue Jun 30 14:24:56 1998 ++++ nfs/syscalls.c Sat May 1 14:30:02 2004 @@ -12,8 +12,10 @@ #define NFSCLIENT #include "syshdr.h" @@ -30,3 +30,20 @@ #endif int syscall_mount(char *dir, void *root_fh, int sock_fd, struct sockaddr_in *socket, char *mntfrom) +@@ -103,6 +114,8 @@ + # define VFCERROR !vfc + # define VFCNFSNAME vfc->vfc_index + # endif ++ ++#if __FreeBSD_version < 502111 + GETVFSBYNAME; + if (VFCERROR && vfsisloadable("nfs")) { + if(vfsload("nfs")) +@@ -112,6 +125,7 @@ + } + if (VFCERROR) + return -1; ++#endif + return mount(VFCNFSNAME, dir, 0, &nfs_args); + #else /* __FreeBSD__ */ + return mount(NFSNAME, dir, 0, &nfs_args); |