summaryrefslogtreecommitdiff
path: root/source3/libsmb/libsmb_stat.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_stat.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_stat.c')
-rw-r--r--source3/libsmb/libsmb_stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/libsmb_stat.c b/source3/libsmb/libsmb_stat.c
index d589f7ef71..0ad40e878a 100644
--- a/source3/libsmb/libsmb_stat.c
+++ b/source3/libsmb/libsmb_stat.c
@@ -308,7 +308,7 @@ SMBC_fstat_ctx(SMBCCTX *context,
int
SMBC_statvfs_ctx(SMBCCTX *context,
char *path,
- struct statvfs *st)
+ struct smbc_statvfs *st)
{
int ret;
bool bIsDir;
@@ -360,7 +360,7 @@ SMBC_statvfs_ctx(SMBCCTX *context,
int
SMBC_fstatvfs_ctx(SMBCCTX *context,
SMBCFILE *file,
- struct statvfs *st)
+ struct smbc_statvfs *st)
{
uint32 fs_attrs = 0;
struct cli_state *cli = file->srv->cli;