git: 393b7606f9c1 - main - Unbreak the build: Also define NFSV42_OLDNPROCS here.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Apr 2022 17:58:47 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=393b7606f9c18c27f340edb28395093b618f68bd
commit 393b7606f9c18c27f340edb28395093b618f68bd
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-04-05 17:54:20 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-04-05 17:54:20 +0000
Unbreak the build: Also define NFSV42_OLDNPROCS here.
If nfsproto.h is included before nfsport.h, then NFSV42_OLDNPROCS would
be undefined when it is used in struct nfsstatsov1.
Sponsored by: Netflix
---
sys/fs/nfs/nfsproto.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sys/fs/nfs/nfsproto.h b/sys/fs/nfs/nfsproto.h
index 2e21a70b5d86..ceecc63a7732 100644
--- a/sys/fs/nfs/nfsproto.h
+++ b/sys/fs/nfs/nfsproto.h
@@ -413,6 +413,9 @@
*/
#define NFSV42_NPROCS 70
+/* Value of NFSV42_NPROCS for old nfsstats structure. (Always 69) */
+#define NFSV42_OLDNPROCS 69
+
#endif /* NFS_V3NPROCS */
/*