From f6026407694f56f5a23338aa9e687fda9921a83e Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Tue, 11 Sep 2012 00:07:45 +0200 Subject: quota: fix configure test for HP-UX while HP-UX does have the 4A quota interface our test failed due to a missing function prototype in HP-UX and our test running in strict mode with compile warnings be errors. So let's make our own prototype in the test when we are on HP*UX --- source3/tests/sysquotas.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source3/tests') diff --git a/source3/tests/sysquotas.c b/source3/tests/sysquotas.c index 68f8a1c976..1544dca7cf 100644 --- a/source3/tests/sysquotas.c +++ b/source3/tests/sysquotas.c @@ -24,6 +24,12 @@ # include #endif +#ifdef HPUX +/* HPUX has no prototype for quotactl but we test compile with strict + error checks, which would fail without function prototype */ +extern int quotactl(int cmd, const char *special, uid_t uid, void *addr); +#endif + #ifndef SYS_DQBLK #define SYS_DQBLK dqblk #endif -- cgit