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
This commit is contained in:
Kenny Root 2010-10-04 14:43:15 -07:00
parent 912ff85b03
commit 6be460d5b0
7 changed files with 35 additions and 0 deletions

View File

@ -285,4 +285,9 @@
*/
#define HAVE_SCHED_H 1
/*
* Define if pread() exists
*/
#define HAVE_PREAD 1
#endif /*_ANDROID_CONFIG_H*/

View File

@ -344,4 +344,9 @@
*/
#define HAVE_SCHED_H 1
/*
* Define if pread() exists
*/
#define HAVE_PREAD 1
#endif /*_ANDROID_CONFIG_H*/

View File

@ -339,4 +339,9 @@
*/
#define HAVE_SCHED_H 1
/*
* Define if pread() exists
*/
#define HAVE_PREAD 1
#endif /* _ANDROID_CONFIG_H */

View File

@ -346,4 +346,9 @@
*/
#define HAVE_UNWIND_CONTEXT_STRUCT
/*
* Define if pread() exists
*/
#define HAVE_PREAD 1
#endif /* _ANDROID_CONFIG_H */

View File

@ -313,4 +313,9 @@
*/
#define HAVE_SCHED_H 1
/*
* Define if pread() exists
*/
#define HAVE_PREAD 1
#endif /*_ANDROID_CONFIG_H*/

View File

@ -330,4 +330,9 @@
*/
#define HAVE_SCHED_H 1
/*
* Define if pread() exists
*/
#define HAVE_PREAD 1
#endif /* _ANDROID_CONFIG_H */

View File

@ -318,4 +318,9 @@
*/
/* #define HAVE_SCHED_H */
/*
* Define if pread() exists
*/
/* #define HAVE_PREAD 1 */
#endif /*_ANDROID_CONFIG_H*/