From c67d5716bdd641bf67334877d9bbde66b818eaa2 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Mon, 10 Aug 2020 13:07:45 -0700 Subject: [PATCH] quota: fix compilation without sys/cdefs sys/cdefs.h does not come included with musl. It's also deprecated. Signed-off-by: Rosen Penev --- utils/quota/Makefile | 2 +- utils/quota/patches/010-cdefs.patch | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 utils/quota/patches/010-cdefs.patch diff --git a/utils/quota/Makefile b/utils/quota/Makefile index 9633a79b8..49af89eb1 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 000000000..a44978e7e --- /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_ */