summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDerrell Lipman <derrell.lipman@unwireduniverse.com>2009-02-13 16:47:54 -0500
committerDerrell Lipman <derrell.lipman@unwireduniverse.com>2009-02-14 09:44:36 -0500
commit352c97561e9de6ccd0102859d18ed15913042622 (patch)
tree3959fae8277a9218bac8d70a57a9f77638852a2b /examples
parent1c9630bf4df4315e0c7b72ac126c43b49f499834 (diff)
downloadsamba-352c97561e9de6ccd0102859d18ed15913042622.tar.gz
samba-352c97561e9de6ccd0102859d18ed15913042622.tar.bz2
samba-352c97561e9de6ccd0102859d18ed15913042622.zip
[Bug 6069] Add a fstatvfs function for libsmbclient
- Revert Tim's changes for the moment. I need to see what the issue is and arrange to use "struct statvfs" if at all possible. Derrell
Diffstat (limited to 'examples')
-rw-r--r--examples/libsmbclient/testfstatvfs.c3
-rw-r--r--examples/libsmbclient/teststatvfs.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/examples/libsmbclient/testfstatvfs.c b/examples/libsmbclient/testfstatvfs.c
index 815afac866..b4dafefff6 100644
--- a/examples/libsmbclient/testfstatvfs.c
+++ b/examples/libsmbclient/testfstatvfs.c
@@ -1,4 +1,5 @@
#include <sys/types.h>
+#include <sys/statvfs.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
@@ -17,7 +18,7 @@ int main(int argc, char * argv[])
char * p;
char path[2048];
struct stat statbuf;
- struct smbc_statvfs statvfsbuf;
+ struct statvfs statvfsbuf;
smbc_init(get_auth_data_fn, debug);
diff --git a/examples/libsmbclient/teststatvfs.c b/examples/libsmbclient/teststatvfs.c
index b9509d2e07..8812002d5c 100644
--- a/examples/libsmbclient/teststatvfs.c
+++ b/examples/libsmbclient/teststatvfs.c
@@ -1,4 +1,5 @@
#include <sys/types.h>
+#include <sys/statvfs.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
@@ -17,7 +18,7 @@ int main(int argc, char * argv[])
char * p;
char path[2048];
struct stat statbuf;
- struct smbc_statvfs statvfsbuf;
+ struct statvfs statvfsbuf;
smbc_init(get_auth_data_fn, debug);