Blame SOURCES/quota-4.06-Drop-sys-cdefs.h-usage.patch

97c04e
From 1959f3768a284315250acd4d17a9f5ef0b8ea189 Mon Sep 17 00:00:00 2001
97c04e
From: Jan Kara <jack@suse.cz>
97c04e
Date: Mon, 30 Nov 2020 16:35:26 +0100
97c04e
Subject: [PATCH] Drop sys/cdefs.h usage
97c04e
MIME-Version: 1.0
97c04e
Content-Type: text/plain; charset=UTF-8
97c04e
Content-Transfer-Encoding: 8bit
97c04e
97c04e
quota.h header includes sys/cdefs.h because it uses __P() macro in
97c04e
quotactl syscall declaration. However glibc currently defines __P() is
97c04e
nop and it only causes issues with other libc implementations (e.g. musl
97c04e
libc). So just drop __P() usage and sys/cdefs.h include.
97c04e
97c04e
Reported-by: 2xsaiko <git@dblsaiko.net>
97c04e
Signed-off-by: Jan Kara <jack@suse.cz>
97c04e
Signed-off-by: Petr Písař <ppisar@redhat.com>
97c04e
---
97c04e
 quota.h | 3 +--
97c04e
 1 file changed, 1 insertion(+), 2 deletions(-)
97c04e
97c04e
diff --git a/quota.h b/quota.h
97c04e
index 4c21411..845cbbd 100644
97c04e
--- a/quota.h
97c04e
+++ b/quota.h
97c04e
@@ -1,7 +1,6 @@
97c04e
 #ifndef GUARD_QUOTA_H
97c04e
 #define GUARD_QUOTA_H
97c04e
 
97c04e
-#include <sys/cdefs.h>
97c04e
 #include <sys/types.h>
97c04e
 #include <stdint.h>
97c04e
 
97c04e
@@ -182,6 +181,6 @@ enum {
97c04e
 	#endif
97c04e
 #endif
97c04e
 
97c04e
-long quotactl __P((int, const char *, qid_t, caddr_t));
97c04e
+long quotactl(int, const char *, qid_t, caddr_t);
97c04e
 
97c04e
 #endif /* _QUOTA_ */
97c04e
-- 
97c04e
2.26.2
97c04e