nfs-kernel-server: Fix compile with uClibc-ng

NS_MAXMSG is not defined.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit 732b1c4c0e)
This commit is contained in:
Rosen Penev
2019-06-25 10:45:58 -07:00
parent 17924b1283
commit 5746e4a2b3
2 changed files with 14 additions and 1 deletions
@@ -0,0 +1,13 @@
--- a/support/nfsidmap/libnfsidmap.c
+++ b/support/nfsidmap/libnfsidmap.c
@@ -89,6 +89,10 @@ gid_t nobody_gid = (gid_t)-1;
#define NFS4DNSTXTREC "_nfsv4idmapdomain"
#endif
+#ifndef NS_MAXMSG
+#define NS_MAXMSG 65535
+#endif
+
/* Default logging fuction */
static void default_logger(const char *fmt, ...)
{