These are the changes necessary to build for android. Working status is yet
untested.
* This is the highlevel interface to access NFS resources using a posix-like interface
*/
#include <stdint.h>
+#if defined(ANDROID)
+#include <sys/time.h>
+#endif
struct nfs_context;
struct rpc_context;
#else
#include <strings.h>
#include <unistd.h>
+#ifndef ANDROID
#include <sys/statvfs.h>
+#else
+#include <netinet/in.h>
+#include <sys/vfs.h>
+#define statvfs statfs
+#endif
#include <poll.h>
#include <sys/ioctl.h>
#include <netdb.h>
#define DllExport
#else
#include <strings.h>
+#ifndef ANDROID
#include <sys/statvfs.h>
+#else
+#include <sys/vfs.h>
+#define statvfs statfs
+#endif
#include <utime.h>
#include <unistd.h>
#endif/*WIN32*/
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);
#define NFS3_CREATEVERFSIZE 8
#define NFS3_COOKIEVERFSIZE 8
+#if defined(ANDROID)
+typedef long long int quad_t;
+typedef long long unsigned u_quad_t;
+#endif
+
typedef char cookieverf3[NFS3_COOKIEVERFSIZE];
typedef u_quad_t uint64;
extern "C" {
#endif
+#if defined(ANDROID)
+typedef long long int quad_t;
+typedef long long unsigned u_quad_t;
+#endif
struct nlm_fh4 {
struct {