Android: only redefine statvfs if it is not already defined

It is defined with recent platforms version 21 and more recent
libnfs-4.0.0-vitalif
Jean-Baptiste Kempf 2016-03-11 00:09:16 +01:00
parent eebe56cee7
commit 41c41aec0b
2 changed files with 8 additions and 8 deletions

View File

@ -37,10 +37,6 @@
#include <net/if.h>
#endif
#ifdef __ANDROID__
#define statvfs statfs
#endif
#ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h>
#endif
@ -49,6 +45,10 @@
#include <sys/statvfs.h>
#endif
#if defined(__ANDROID__) && !defined(HAVE_SYS_STATVFS_H)
#define statvfs statfs
#endif
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif

View File

@ -33,10 +33,6 @@
#include <utime.h>
#endif
#ifdef __ANDROID__
#define statvfs statfs
#endif
#define _GNU_SOURCE
#ifdef HAVE_UNISTD_H
@ -51,6 +47,10 @@
#include <sys/statvfs.h>
#endif
#if defined(__ANDROID__) && !defined(HAVE_SYS_STATVFS_H)
#define statvfs statfs
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif