From: Björn Jacke Date: Mon, 10 Sep 2012 22:07:45 +0000 (+0200) Subject: quota: fix configure test for HP-UX X-Git-Tag: samba-4.0.0rc1~84 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f6026407694f56f5a23338aa9e687fda9921a83e;p=thirdparty%2Fsamba.git 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 --- diff --git a/source3/tests/sysquotas.c b/source3/tests/sysquotas.c index 68f8a1c9762..1544dca7cfb 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