nfs-kernel-server: Fix compile with uClibc-ng
authorRosen Penev <rosenp@gmail.com>
Tue, 25 Jun 2019 17:45:58 +0000 (10:45 -0700)
committertripolar <tripolar@users.noreply.github.com>
Fri, 28 Jun 2019 18:12:15 +0000 (20:12 +0200)
NS_MAXMSG is not defined.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
net/nfs-kernel-server/Makefile
net/nfs-kernel-server/patches/102-uclibc-ns-maxmsg.patch [new file with mode: 0644]

index 389477041e1f13d92f625fa6fc19d82b33502b67..8cc1eb30a5560ce86ab11ed811ba7ea606beff65 100644 (file)
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=nfs-kernel-server
 PKG_VERSION:=2.3.4
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 PKG_HASH:=8a6bafd5a33c4259e6e5093d126384cbe33acb10135578b5faa60c40f2f5e995
 
 PKG_SOURCE_URL:=@SF/nfs
diff --git a/net/nfs-kernel-server/patches/102-uclibc-ns-maxmsg.patch b/net/nfs-kernel-server/patches/102-uclibc-ns-maxmsg.patch
new file mode 100644 (file)
index 0000000..98d7725
--- /dev/null
@@ -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, ...)
+ {