aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-04-13 14:18:06 -0400
committerSteve Dickson <steved@redhat.com>2020-04-13 14:47:24 -0400
commit266dd839e6399108cabe4b2d63c10dac5d8066dd (patch)
treedef8ceeb5832c38666d568de68843cf708d03061
parentcb75ec49c0a92f55b2241eb1cd95a3fdf63f0dac (diff)
downloadnfs-utils-266dd839e6399108cabe4b2d63c10dac5d8066dd.tar.gz
nfsidmap: define NS_MAXMSG if undefined
uClibc-ng does not define it. Signed-off-by: Rosen Penev <rosenp@gmail.com> Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--support/nfsidmap/libnfsidmap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/support/nfsidmap/libnfsidmap.c b/support/nfsidmap/libnfsidmap.c
index d11710f1..bce448cf 100644
--- 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, ...)
{