From 5e5d2b2cfadaf3bf352dcc25b302b12c70803d1f Mon Sep 17 00:00:00 2001 From: Tim Prouty Date: Fri, 13 Feb 2009 10:58:54 -0800 Subject: 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. --- source3/libsmb/libsmb_stat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/libsmb/libsmb_stat.c') 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; -- cgit