X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lib%2Flibnfs.c;h=cd5a629805dfd3b3cd18b3952033562b7bbeedc6;hb=d7c6e9aaa9df593e951e2f19106dcc71102e74f1;hp=e68468bf79d2bfe10e083ef237cf955f2304de3f;hpb=f3a75078066dd8022e1e52d9cce2256b4fc323d2;p=deb_libnfs.git diff --git a/lib/libnfs.c b/lib/libnfs.c index e68468b..cd5a629 100644 --- a/lib/libnfs.c +++ b/lib/libnfs.c @@ -21,11 +21,22 @@ #include "win32_compat.h" #define DllExport #else + #include -#include #include #include -#endif/*WIN32*/ + +#ifdef AROS +#include "aros_compat.h" +#else +#ifdef ANDROID +#include +#define statvfs statfs +#else +#include +#endif /*ANDROID*/ +#endif /*AROS*/ +#endif /*WIN32*/ #define _GNU_SOURCE @@ -2414,10 +2425,12 @@ static void nfs_statvfs_1_cb(struct rpc_context *rpc, int status, void *command_ svfs.f_bavail = res->FSSTAT3res_u.resok.abytes/4096; svfs.f_files = res->FSSTAT3res_u.resok.tfiles; svfs.f_ffree = res->FSSTAT3res_u.resok.ffiles; +#if !defined(ANDROID) svfs.f_favail = res->FSSTAT3res_u.resok.afiles; svfs.f_fsid = 0; svfs.f_flag = 0; svfs.f_namemax = 256; +#endif data->cb(0, nfs, &svfs, data->private_data); free_nfs_cb_data(data);