From 3c0f51c62dbdff226c0ff5bc6d09936c1eba4d89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= Date: Tue, 11 Sep 2012 00:07:45 +0200 Subject: [PATCH] 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(+) diff --git a/source3/tests/sysquotas.c b/source3/tests/sysquotas.c index 68f8a1c..81d563f 100644 --- a/source3/tests/sysquotas.c +++ b/source3/tests/sysquotas.c @@ -24,6 +24,12 @@ # include #endif +#ifdef HPUX +/* HPUX haѕ 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 -- 1.7.11.5