diff options
author | kris <kris@FreeBSD.org> | 2004-05-04 18:42:11 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2004-05-04 18:42:11 +0800 |
commit | 7cf94e3489eeeebeac626beba1d8d798b9b63ab2 (patch) | |
tree | 316c30dc71eb9828bd596522b230af6403de2d61 /net/sharity-light | |
parent | a02b2f7347d418fc556bff11c2ad7405161b2f39 (diff) | |
download | freebsd-ports-graphics-7cf94e3489eeeebeac626beba1d8d798b9b63ab2.tar.gz freebsd-ports-graphics-7cf94e3489eeeebeac626beba1d8d798b9b63ab2.tar.zst freebsd-ports-graphics-7cf94e3489eeeebeac626beba1d8d798b9b63ab2.zip |
Fix build on recent 5.x.
Submitted by: mux
Diffstat (limited to 'net/sharity-light')
-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 5c117215c29..f7ac372b96c 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); |