Fix build on recent 5.x.
Submitted by: mux
This commit is contained in:
parent
32de085a3a
commit
b81de76411
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=108359
1 changed files with 19 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue