Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo Kumpera <kumpera@gmail.com>2017-10-31 00:22:02 +0300
committerRodrigo Kumpera <kumpera@gmail.com>2017-10-31 01:08:25 +0300
commitc133304b9510b6efcbe013d5dbcc73cbf336e991 (patch)
treeb9095282422f7bea6cae9b11c4a5c4d3d78c364a /support
parent6b3e68486a77501ff68a0466a3e1847d2dfefbaa (diff)
[android] Fix compilation with recent ndk and sdk target < 16.
Diffstat (limited to 'support')
-rw-r--r--support/sys-xattr.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/support/sys-xattr.c b/support/sys-xattr.c
index fc03f7ee95a..f10f9671efa 100644
--- a/support/sys-xattr.c
+++ b/support/sys-xattr.c
@@ -11,7 +11,12 @@
#include <config.h>
-#if defined(HAVE_SYS_XATTR_H) || defined(HAVE_ATTR_ATTR_H) || defined(HAVE_SYS_EXTATTR_H)
+//If we're compiling to API level < 16 this won't be available
+#if __ANDROID_API__ < 16
+#define ANDROID_NO_XATTR
+#endif
+
+#if (defined(HAVE_SYS_XATTR_H) || defined(HAVE_ATTR_ATTR_H) || defined(HAVE_SYS_EXTATTR_H)) && !defined (ANDROID_NO_XATTR)
#include <sys/types.h>