summaryrefslogtreecommitdiffstats
path: root/include/arch/freebsd-x86
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2010-10-04 14:43:15 -0700
committerKenny Root <kroot@google.com>2010-10-04 15:13:49 -0700
commit6be460d5b0b60aca4e8d649e2254f8a8920f4d98 (patch)
tree048b9e646d86f20ded9e9d564230877daa30fc13 /include/arch/freebsd-x86
parent912ff85b035e0e6bc109812c1ea5661ea4df5967 (diff)
downloadsystem_core-6be460d5b0b60aca4e8d649e2254f8a8920f4d98.zip
system_core-6be460d5b0b60aca4e8d649e2254f8a8920f4d98.tar.gz
system_core-6be460d5b0b60aca4e8d649e2254f8a8920f4d98.tar.bz2
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
Diffstat (limited to 'include/arch/freebsd-x86')
-rw-r--r--include/arch/freebsd-x86/AndroidConfig.h5
1 files changed, 5 insertions, 0 deletions
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*/