From: Rosen Penev Date: Mon, 10 Aug 2020 20:07:45 +0000 (-0700) Subject: quota: fix compilation without sys/cdefs X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=c67d5716bdd641bf67334877d9bbde66b818eaa2;p=feed%2Fpackages.git quota: fix compilation without sys/cdefs sys/cdefs.h does not come included with musl. It's also deprecated. Signed-off-by: Rosen Penev --- diff --git a/utils/quota/Makefile b/utils/quota/Makefile index 9633a79b8b..49af89eb11 100644 --- a/utils/quota/Makefile +++ b/utils/quota/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=quota PKG_VERSION:=4.05 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/linuxquota diff --git a/utils/quota/patches/010-cdefs.patch b/utils/quota/patches/010-cdefs.patch new file mode 100644 index 0000000000..a44978e7eb --- /dev/null +++ b/utils/quota/patches/010-cdefs.patch @@ -0,0 +1,18 @@ +--- a/quota.h ++++ b/quota.h +@@ -1,7 +1,6 @@ + #ifndef GUARD_QUOTA_H + #define GUARD_QUOTA_H + +-#include + #include + #include + +@@ -182,6 +181,6 @@ enum { + #endif + #endif + +-long quotactl __P((int, const char *, qid_t, caddr_t)); ++long quotactl (int, const char *, qid_t, caddr_t); + + #endif /* _QUOTA_ */