From bb8ebabfd47805e0d72273e91492f215a9994c00 Mon Sep 17 00:00:00 2001 From: Raphael Moll Date: Wed, 13 Oct 2010 16:47:35 -0700 Subject: [PATCH] Define HAVE_STAT_ST_MTIM and disable it under MinGW/Cygwin. This is used by build\libs\host\CopyFile.c Also define HAVE_PRINTF_ZD since printf %zd is not supported on MinGW/Cygwin. This is used by frmk/base/libs/utils/ZipFileRO.cpp Change-Id: I570ac5dd0a5b256ee67ad62433f1226597da3ea4 --- include/arch/darwin-x86/AndroidConfig.h | 10 ++++++++++ include/arch/freebsd-x86/AndroidConfig.h | 9 +++++++++ include/arch/linux-arm/AndroidConfig.h | 10 ++++++++++ include/arch/linux-sh/AndroidConfig.h | 10 ++++++++++ include/arch/linux-x86/AndroidConfig.h | 10 ++++++++++ include/arch/target_linux-x86/AndroidConfig.h | 10 ++++++++++ include/arch/windows/AndroidConfig.h | 10 ++++++++++ 7 files changed, 69 insertions(+) diff --git a/include/arch/darwin-x86/AndroidConfig.h b/include/arch/darwin-x86/AndroidConfig.h index c2c1f189c..2bb44c6ae 100644 --- a/include/arch/darwin-x86/AndroidConfig.h +++ b/include/arch/darwin-x86/AndroidConfig.h @@ -290,4 +290,14 @@ */ #define HAVE_PREAD 1 +/* + * Define if we have st_mtim in struct stat + */ +#define HAVE_STAT_ST_MTIM 1 + +/* + * Define if printf() supports %zd for size_t arguments + */ +#define HAVE_PRINTF_ZD 1 + #endif /*_ANDROID_CONFIG_H*/ diff --git a/include/arch/freebsd-x86/AndroidConfig.h b/include/arch/freebsd-x86/AndroidConfig.h index a2a9e6762..992b6895b 100644 --- a/include/arch/freebsd-x86/AndroidConfig.h +++ b/include/arch/freebsd-x86/AndroidConfig.h @@ -348,5 +348,14 @@ * Define if pread() exists */ #define HAVE_PREAD 1 +/* + * Define if we have st_mtim in struct stat + */ +#define HAVE_STAT_ST_MTIM 1 + +/* + * Define if printf() supports %zd for size_t arguments + */ +#define HAVE_PRINTF_ZD 1 #endif /*_ANDROID_CONFIG_H*/ diff --git a/include/arch/linux-arm/AndroidConfig.h b/include/arch/linux-arm/AndroidConfig.h index f5fabb209..5b7ccee1b 100644 --- a/include/arch/linux-arm/AndroidConfig.h +++ b/include/arch/linux-arm/AndroidConfig.h @@ -344,4 +344,14 @@ */ #define HAVE_PREAD 1 +/* + * Define if we have st_mtim in struct stat + */ +#define HAVE_STAT_ST_MTIM 1 + +/* + * Define if printf() supports %zd for size_t arguments + */ +#define HAVE_PRINTF_ZD 1 + #endif /* _ANDROID_CONFIG_H */ diff --git a/include/arch/linux-sh/AndroidConfig.h b/include/arch/linux-sh/AndroidConfig.h index 297f51b13..0dd7b3b32 100644 --- a/include/arch/linux-sh/AndroidConfig.h +++ b/include/arch/linux-sh/AndroidConfig.h @@ -351,4 +351,14 @@ */ #define HAVE_PREAD 1 +/* + * Define if we have st_mtim in struct stat + */ +#define HAVE_STAT_ST_MTIM 1 + +/* + * Define if printf() supports %zd for size_t arguments + */ +#define HAVE_PRINTF_ZD 1 + #endif /* _ANDROID_CONFIG_H */ diff --git a/include/arch/linux-x86/AndroidConfig.h b/include/arch/linux-x86/AndroidConfig.h index 385e1a262..24f6cccec 100644 --- a/include/arch/linux-x86/AndroidConfig.h +++ b/include/arch/linux-x86/AndroidConfig.h @@ -318,4 +318,14 @@ */ #define HAVE_PREAD 1 +/* + * Define if we have st_mtim in struct stat + */ +#define HAVE_STAT_ST_MTIM 1 + +/* + * Define if printf() supports %zd for size_t arguments + */ +#define HAVE_PRINTF_ZD 1 + #endif /*_ANDROID_CONFIG_H*/ diff --git a/include/arch/target_linux-x86/AndroidConfig.h b/include/arch/target_linux-x86/AndroidConfig.h index 1aff9cfd2..617e7fa34 100644 --- a/include/arch/target_linux-x86/AndroidConfig.h +++ b/include/arch/target_linux-x86/AndroidConfig.h @@ -335,4 +335,14 @@ */ #define HAVE_PREAD 1 +/* + * Define if we have st_mtim in struct stat + */ +#define HAVE_STAT_ST_MTIM 1 + +/* + * Define if printf() supports %zd for size_t arguments + */ +#define HAVE_PRINTF_ZD 1 + #endif /* _ANDROID_CONFIG_H */ diff --git a/include/arch/windows/AndroidConfig.h b/include/arch/windows/AndroidConfig.h index 00ce557b9..f0bf56f78 100644 --- a/include/arch/windows/AndroidConfig.h +++ b/include/arch/windows/AndroidConfig.h @@ -323,4 +323,14 @@ */ /* #define HAVE_PREAD 1 */ +/* + * Define if we have st_mtim in struct stat + */ +/* #define HAVE_STAT_ST_MTIM 1 */ + +/* + * Define if printf() supports %zd for size_t arguments + */ +/* #define HAVE_PRINTF_ZD 1 */ + #endif /*_ANDROID_CONFIG_H*/