| 1 |
From f06c5004f410d0a0a9ed706dad194aabf1be0077 Mon Sep 17 00:00:00 2001
|
| 2 |
From: Mike Frysinger <vapier@gentoo.org>
|
| 3 |
Date: Tue, 22 May 2012 15:02:42 -0400
|
| 4 |
Subject: [PATCH] libquota: add a quotactl prototype
|
| 5 |
|
| 6 |
The commit 0df8a27bbaf51b55c0e8c3a533ef4c2ff9d79c9f removed the system
|
| 7 |
quota.h include, but in doing so, added the problem:
|
| 8 |
mkquota.c:55:2: warning: implicit declaration of function 'quotactl'
|
| 9 |
|
| 10 |
Since we're maintaining a copy of quota.h, add a proper func prototype.
|
| 11 |
|
| 12 |
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
| 13 |
---
|
| 14 |
lib/quota/quota.h | 5 +++++
|
| 15 |
1 files changed, 5 insertions(+), 0 deletions(-)
|
| 16 |
|
| 17 |
diff --git a/lib/quota/quota.h b/lib/quota/quota.h
|
| 18 |
index a943ec6..3eaec1d 100644
|
| 19 |
--- a/lib/quota/quota.h
|
| 20 |
+++ b/lib/quota/quota.h
|
| 21 |
@@ -152,4 +152,9 @@ enum {
|
| 22 |
};
|
| 23 |
#define QUOTA_NL_A_MAX (__QUOTA_NL_A_MAX - 1)
|
| 24 |
|
| 25 |
+#ifdef HAVE_QUOTACTL
|
| 26 |
+extern int quotactl(int __cmd, const char *__special, int __id,
|
| 27 |
+ caddr_t __addr);
|
| 28 |
+#endif
|
| 29 |
+
|
| 30 |
#endif /* _QUOTA_ */
|
| 31 |
--
|
| 32 |
1.7.8.6
|
| 33 |
|