Android: only redefine statvfs if it is not already defined
It is defined with recent platforms version 21 and more recentlibnfs-4.0.0-vitalif
parent
eebe56cee7
commit
41c41aec0b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue