diff mbox series

nfsidmap: define NS_MAXMSG if undefined

Message ID 20200404053642.2632532-1-rosenp@gmail.com (mailing list archive)
State New, archived
Headers show
Series nfsidmap: define NS_MAXMSG if undefined | expand

Commit Message

Rosen Penev April 4, 2020, 5:36 a.m. UTC
uClibc-ng does not define it.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 support/nfsidmap/libnfsidmap.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Steve Dickson April 14, 2020, 2:27 p.m. UTC | #1
On 4/4/20 1:36 AM, Rosen Penev wrote:
> uClibc-ng does not define it.
> 
> Signed-off-by: Rosen Penev <rosenp@gmail.com>

Committed... (tag: nfs-utils-2-4-4-rc3)

steved.
> ---
>  support/nfsidmap/libnfsidmap.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> 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, ...)
>  {
>
diff mbox series

Patch

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, ...)
 {