mirror of
https://git.freebsd.org/ports.git
synced 2025-05-31 10:26:28 -04:00
Unbreak for current.
Submitted by: Gary Jennejohn <garyj@muc.de>
This commit is contained in:
parent
fd1c4ad548
commit
c0accd93e7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=13970
2 changed files with 16 additions and 4 deletions
|
@ -353,6 +353,9 @@ collect_stats()
|
|||
off_t ifnetaddr;
|
||||
register int i, tmp;
|
||||
int mib[3], size;
|
||||
#if (__FreeBSD_version >= 300004)
|
||||
struct vfsconf vfc;
|
||||
#endif
|
||||
|
||||
kread(X_CPTIME, s.time, sizeof(s.time));
|
||||
#ifndef HAVE_DEVSTAT
|
||||
|
@ -449,8 +452,11 @@ collect_stats()
|
|||
|
||||
size = sizeof(nfsstats);
|
||||
mib[0] = CTL_FS;
|
||||
#if (__FreeBSD_version >= 300003) /* ?? */
|
||||
mib[1] = MNT_EXPORTED;
|
||||
#if (__FreeBSD_version >= 300004)
|
||||
if (getvfsbyname("nfs", &vfc) < 0)
|
||||
/* no NFS in the kernel */
|
||||
return;
|
||||
mib[1] = vfc.vfc_typenum;
|
||||
#else
|
||||
mib[1] = MOUNT_NFS;
|
||||
#endif
|
||||
|
|
|
@ -353,6 +353,9 @@ collect_stats()
|
|||
off_t ifnetaddr;
|
||||
register int i, tmp;
|
||||
int mib[3], size;
|
||||
#if (__FreeBSD_version >= 300004)
|
||||
struct vfsconf vfc;
|
||||
#endif
|
||||
|
||||
kread(X_CPTIME, s.time, sizeof(s.time));
|
||||
#ifndef HAVE_DEVSTAT
|
||||
|
@ -449,8 +452,11 @@ collect_stats()
|
|||
|
||||
size = sizeof(nfsstats);
|
||||
mib[0] = CTL_FS;
|
||||
#if (__FreeBSD_version >= 300003) /* ?? */
|
||||
mib[1] = MNT_EXPORTED;
|
||||
#if (__FreeBSD_version >= 300004)
|
||||
if (getvfsbyname("nfs", &vfc) < 0)
|
||||
/* no NFS in the kernel */
|
||||
return;
|
||||
mib[1] = vfc.vfc_typenum;
|
||||
#else
|
||||
mib[1] = MOUNT_NFS;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue