quota: fix configure test for HP-UX
authorBjörn Jacke <bj@sernet.de>
Mon, 10 Sep 2012 22:07:45 +0000 (00:07 +0200)
committerBjoern Jacke <bj@sernet.de>
Tue, 11 Sep 2012 01:05:17 +0000 (03:05 +0200)
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

index 68f8a1c97622ad68a8397f39412941ee7ee5fc55..1544dca7cfbe3aa0c28d4b1064d1dd1887a00687 100644 (file)
 # include <sys/quota.h>
 #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