summaryrefslogtreecommitdiff
path: root/source3/libsmb/libsmb_compat.c
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-02-13 10:58:54 -0800
committerTim Prouty <tprouty@samba.org>2009-02-13 12:59:30 -0800
commit5e5d2b2cfadaf3bf352dcc25b302b12c70803d1f (patch)
tree39f83635cfb3d959f7780ef334dbb8223c54e10f /source3/libsmb/libsmb_compat.c
parent6085ba3dec4fa616fca78c55b793cfd89ef272a8 (diff)
downloadsamba-5e5d2b2cfadaf3bf352dcc25b302b12c70803d1f.tar.gz
samba-5e5d2b2cfadaf3bf352dcc25b302b12c70803d1f.tar.bz2
samba-5e5d2b2cfadaf3bf352dcc25b302b12c70803d1f.zip
s3 libsmbclient: Fix fstatvfs to be more portable
The statvfs struct isn't guaranteed to be portable across operating systems. Since libsmbclient isn't actually calling statvfs and just using the statvfs struct to store similar information, this patch adds a new portable smbc_statvfs struct. This fixes a few of the failures in the build farm introduced by: ae259575c447e61665c8e7070c476914161b953f Derrell, please check.
Diffstat (limited to 'source3/libsmb/libsmb_compat.c')
-rw-r--r--source3/libsmb/libsmb_compat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/libsmb_compat.c b/source3/libsmb/libsmb_compat.c
index 56d113f31a..95485dc102 100644
--- a/source3/libsmb/libsmb_compat.c
+++ b/source3/libsmb/libsmb_compat.c
@@ -331,14 +331,14 @@ smbc_fstat(int fd,
int
smbc_statvfs(char *path,
- struct statvfs *st)
+ struct smbc_statvfs *st)
{
return smbc_getFunctionStatVFS(statcont)(statcont, path, st);
}
int
smbc_fstatvfs(int fd,
- struct statvfs *st)
+ struct smbc_statvfs *st)
{
SMBCFILE * file = find_fd(fd);
return smbc_getFunctionFstatVFS(statcont)(statcont, file, st);