summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2020-11-30 16:35:26 +0100
committerJan Kara <jack@suse.cz>2020-11-30 16:37:41 +0100
commit1959f3768a284315250acd4d17a9f5ef0b8ea189 (patch)
treeda3aee8917a5306811aee9e571391dc58d2464f3
parent43b6e31f39edbe7de4f4feeef4d0cf6be093e021 (diff)
downloadlinuxquota-1959f3768a284315250acd4d17a9f5ef0b8ea189.tar.gz
Drop sys/cdefs.h usage
quota.h header includes sys/cdefs.h because it uses __P() macro in quotactl syscall declaration. However glibc currently defines __P() is nop and it only causes issues with other libc implementations (e.g. musl libc). So just drop __P() usage and sys/cdefs.h include. Reported-by: 2xsaiko <git@dblsaiko.net> Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r--quota.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/quota.h b/quota.h
index 4c21411..845cbbd 100644
--- a/quota.h
+++ b/quota.h
@@ -1,7 +1,6 @@
#ifndef GUARD_QUOTA_H
#define GUARD_QUOTA_H
-#include <sys/cdefs.h>
#include <sys/types.h>
#include <stdint.h>
@@ -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_ */