diff options
author | Tim Prouty <tprouty@samba.org> | 2009-02-13 10:58:54 -0800 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2009-02-13 12:59:30 -0800 |
commit | 5e5d2b2cfadaf3bf352dcc25b302b12c70803d1f (patch) | |
tree | 39f83635cfb3d959f7780ef334dbb8223c54e10f /source3/libsmb/libsmb_compat.c | |
parent | 6085ba3dec4fa616fca78c55b793cfd89ef272a8 (diff) | |
download | samba-5e5d2b2cfadaf3bf352dcc25b302b12c70803d1f.tar.gz |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/libsmb_compat.c b/source3/libsmb/libsmb_compat.c index 56d113f31a2..95485dc1021 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); |