1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

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:
ae259575c4

Derrell, please check.
This commit is contained in:
Tim Prouty
2009-02-13 10:58:54 -08:00
parent 6085ba3dec
commit 5e5d2b2cfa
6 changed files with 28 additions and 15 deletions

View File

@ -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);

View File

@ -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);