From: Rosen Penev Date: Tue, 25 Jun 2019 17:45:58 +0000 (-0700) Subject: nfs-kernel-server: Fix compile with uClibc-ng X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5746e4a2b381be9b4336010fb48ae5625de72c33;p=feed%2Fpackages.git nfs-kernel-server: Fix compile with uClibc-ng NS_MAXMSG is not defined. Signed-off-by: Rosen Penev (cherry picked from commit 732b1c4c0e1203cf3f07459694680a6a830a6d71) --- diff --git a/net/nfs-kernel-server/Makefile b/net/nfs-kernel-server/Makefile index 389477041e..8cc1eb30a5 100644 --- a/net/nfs-kernel-server/Makefile +++ b/net/nfs-kernel-server/Makefile @@ -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 index 0000000000..98d77250dd --- /dev/null +++ b/net/nfs-kernel-server/patches/102-uclibc-ns-maxmsg.patch @@ -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, ...) + {