[nfs-utils PATCH 1/3] configure: update check of system netlink headers
Scott Mayhew <[email protected]>
| Newsgroups | gmane.linux.nfs |
|---|---|
| Message-ID | <[email protected]> |
Commit e1401387 ("nfsstat: add netlink support for fetching server
statistics") added new symbols to support/include/nfsd_netlink.h
that have not yet been added to the kernel headers. Update the check
that defines USE_SYSTEM_NFSD_NETLINK_H - otherwise nfsstat will fail
to compile.
Signed-off-by: Scott Mayhew <[email protected]>
---
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 8ca06fd6..4ca7666d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -259,9 +259,9 @@ AC_CHECK_HEADERS(linux/nfsd_netlink.h)
AC_DEFINE([HAVE_NFSD_NETLINK], 1,
[Define to 1 if nfsd generic netlink support is available])
-# ensure we have the expkey attributes
+# ensure the system netlink headers have the latest features
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <linux/nfsd_netlink.h>]],
- [[int foo = NFSD_A_EXPKEY_SEQNO;]])],
+ [[int foo = NFSD_CMD_SERVER_STATS_GET;]])],
[AC_DEFINE([USE_SYSTEM_NFSD_NETLINK_H], 1,
["Use system's linux/nfsd_netlink.h"])])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <linux/lockd_netlink.h>]],
--
2.55.0