summaryrefslogtreecommitdiffstats
path: root/examples/libsmbclient
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 /examples/libsmbclient
parent6085ba3dec4fa616fca78c55b793cfd89ef272a8 (diff)
downloadsamba-5e5d2b2cfadaf3bf352dcc25b302b12c70803d1f.tar.gz
samba-5e5d2b2cfadaf3bf352dcc25b302b12c70803d1f.tar.xz
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 'examples/libsmbclient')
-rw-r--r--examples/libsmbclient/testfstatvfs.c3
-rw-r--r--examples/libsmbclient/teststatvfs.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/examples/libsmbclient/testfstatvfs.c b/examples/libsmbclient/testfstatvfs.c
index b4dafefff60..815afac8665 100644
--- a/examples/libsmbclient/testfstatvfs.c
+++ b/examples/libsmbclient/testfstatvfs.c
@@ -1,5 +1,4 @@
#include <sys/types.h>
-#include <sys/statvfs.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
@@ -18,7 +17,7 @@ int main(int argc, char * argv[])
char * p;
char path[2048];
struct stat statbuf;
- struct statvfs statvfsbuf;
+ struct smbc_statvfs statvfsbuf;
smbc_init(get_auth_data_fn, debug);
diff --git a/examples/libsmbclient/teststatvfs.c b/examples/libsmbclient/teststatvfs.c
index 8812002d5ce..b9509d2e07a 100644
--- a/examples/libsmbclient/teststatvfs.c
+++ b/examples/libsmbclient/teststatvfs.c
@@ -1,5 +1,4 @@
#include <sys/types.h>
-#include <sys/statvfs.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
@@ -18,7 +17,7 @@ int main(int argc, char * argv[])
char * p;
char path[2048];
struct stat statbuf;
- struct statvfs statvfsbuf;
+ struct smbc_statvfs statvfsbuf;
smbc_init(get_auth_data_fn, debug);