diff --git a/lib/libnfs-sync.c b/lib/libnfs-sync.c index 664ccfc..69caee3 100644 --- a/lib/libnfs-sync.c +++ b/lib/libnfs-sync.c @@ -37,10 +37,6 @@ #include #endif -#ifdef __ANDROID__ -#define statvfs statfs -#endif - #ifdef HAVE_SYS_VFS_H #include #endif @@ -49,6 +45,10 @@ #include #endif +#if defined(__ANDROID__) && !defined(HAVE_SYS_STATVFS_H) +#define statvfs statfs +#endif + #ifdef HAVE_SYS_IOCTL_H #include #endif diff --git a/lib/libnfs.c b/lib/libnfs.c index 1f16e5f..36c1430 100644 --- a/lib/libnfs.c +++ b/lib/libnfs.c @@ -33,10 +33,6 @@ #include #endif -#ifdef __ANDROID__ -#define statvfs statfs -#endif - #define _GNU_SOURCE #ifdef HAVE_UNISTD_H @@ -51,6 +47,10 @@ #include #endif +#if defined(__ANDROID__) && !defined(HAVE_SYS_STATVFS_H) +#define statvfs statfs +#endif + #ifdef HAVE_NETINET_IN_H #include #endif