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 /examples/libsmbclient | |
parent | 6085ba3dec4fa616fca78c55b793cfd89ef272a8 (diff) | |
download | samba-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 'examples/libsmbclient')
-rw-r--r-- | examples/libsmbclient/testfstatvfs.c | 3 | ||||
-rw-r--r-- | examples/libsmbclient/teststatvfs.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/examples/libsmbclient/testfstatvfs.c b/examples/libsmbclient/testfstatvfs.c index b4dafefff6..815afac866 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 8812002d5c..b9509d2e07 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); |