Add HAVE_PREAD definition to platforms
ZipFileRO uses pread() to guarantee atomic reads at an offset, so use
the HAVE_PREAD flag to trigger off of. The only platform that doesn't
implement it directly is Windows.
Change-Id: Ic927611dc45b75ff8f672ed59afee5be1ad07ab4
diff --git a/include/arch/darwin-x86/AndroidConfig.h b/include/arch/darwin-x86/AndroidConfig.h
index 3aa0cd1..c2c1f18 100644
--- a/include/arch/darwin-x86/AndroidConfig.h
+++ b/include/arch/darwin-x86/AndroidConfig.h
@@ -285,4 +285,9 @@
*/
#define HAVE_SCHED_H 1
+/*
+ * Define if pread() exists
+ */
+#define HAVE_PREAD 1
+
#endif /*_ANDROID_CONFIG_H*/
diff --git a/include/arch/freebsd-x86/AndroidConfig.h b/include/arch/freebsd-x86/AndroidConfig.h
index 57d5024..a2a9e67 100644
--- a/include/arch/freebsd-x86/AndroidConfig.h
+++ b/include/arch/freebsd-x86/AndroidConfig.h
@@ -344,4 +344,9 @@
*/
#define HAVE_SCHED_H 1
+/*
+ * Define if pread() exists
+ */
+#define HAVE_PREAD 1
+
#endif /*_ANDROID_CONFIG_H*/
diff --git a/include/arch/linux-arm/AndroidConfig.h b/include/arch/linux-arm/AndroidConfig.h
index 32b7026..f5fabb2 100644
--- a/include/arch/linux-arm/AndroidConfig.h
+++ b/include/arch/linux-arm/AndroidConfig.h
@@ -339,4 +339,9 @@
*/
#define HAVE_SCHED_H 1
+/*
+ * Define if pread() exists
+ */
+#define HAVE_PREAD 1
+
#endif /* _ANDROID_CONFIG_H */
diff --git a/include/arch/linux-sh/AndroidConfig.h b/include/arch/linux-sh/AndroidConfig.h
index 76ae7d7..297f51b 100644
--- a/include/arch/linux-sh/AndroidConfig.h
+++ b/include/arch/linux-sh/AndroidConfig.h
@@ -346,4 +346,9 @@
*/
#define HAVE_UNWIND_CONTEXT_STRUCT
+/*
+ * Define if pread() exists
+ */
+#define HAVE_PREAD 1
+
#endif /* _ANDROID_CONFIG_H */
diff --git a/include/arch/linux-x86/AndroidConfig.h b/include/arch/linux-x86/AndroidConfig.h
index b0fe90a..385e1a2 100644
--- a/include/arch/linux-x86/AndroidConfig.h
+++ b/include/arch/linux-x86/AndroidConfig.h
@@ -313,4 +313,9 @@
*/
#define HAVE_SCHED_H 1
+/*
+ * Define if pread() exists
+ */
+#define HAVE_PREAD 1
+
#endif /*_ANDROID_CONFIG_H*/
diff --git a/include/arch/target_linux-x86/AndroidConfig.h b/include/arch/target_linux-x86/AndroidConfig.h
index b9800dd..1aff9cf 100644
--- a/include/arch/target_linux-x86/AndroidConfig.h
+++ b/include/arch/target_linux-x86/AndroidConfig.h
@@ -330,4 +330,9 @@
*/
#define HAVE_SCHED_H 1
+/*
+ * Define if pread() exists
+ */
+#define HAVE_PREAD 1
+
#endif /* _ANDROID_CONFIG_H */
diff --git a/include/arch/windows/AndroidConfig.h b/include/arch/windows/AndroidConfig.h
index bb8e5ef..00ce557 100644
--- a/include/arch/windows/AndroidConfig.h
+++ b/include/arch/windows/AndroidConfig.h
@@ -318,4 +318,9 @@
*/
/* #define HAVE_SCHED_H */
+/*
+ * Define if pread() exists
+ */
+/* #define HAVE_PREAD 1 */
+
#endif /*_ANDROID_CONFIG_H*/