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:
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user