diff options
author | Björn Jacke <bj@sernet.de> | 2012-09-11 00:07:45 +0200 |
---|---|---|
committer | Bjoern Jacke <bj@sernet.de> | 2012-09-11 03:05:17 +0200 |
commit | f6026407694f56f5a23338aa9e687fda9921a83e (patch) | |
tree | 586cf336a19a25e7d9d41afa4e3d75f939dc76e8 /source3/tests | |
parent | 6a1fa3e0a7f5f268e193c8b9ef40432d3d51f4aa (diff) | |
download | samba-f6026407694f56f5a23338aa9e687fda9921a83e.tar.gz samba-f6026407694f56f5a23338aa9e687fda9921a83e.tar.xz samba-f6026407694f56f5a23338aa9e687fda9921a83e.zip |
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
Diffstat (limited to 'source3/tests')
-rw-r--r-- | source3/tests/sysquotas.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 <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 |