From 303254eb674991bbb79b887b0d49fef48ae5abd4 Mon Sep 17 00:00:00 2001 From: Dan Bornstein Date: Fri, 30 Oct 2009 17:15:13 -0700 Subject: Define HAVE_SYS_SENDFILE_H. Platforms differ on whether sys/sendfile.h or sys/socket.h is where to find the declaration for sendfile(). Change-Id: Ib6e882534b7dc605d30aefed55732dc1ee2b6772 --- include/arch/darwin-x86/AndroidConfig.h | 5 +++++ include/arch/freebsd-x86/AndroidConfig.h | 5 +++++ include/arch/linux-arm/AndroidConfig.h | 5 +++++ include/arch/linux-sh/AndroidConfig.h | 5 +++++ include/arch/linux-x86/AndroidConfig.h | 5 +++++ include/arch/target_linux-x86/AndroidConfig.h | 5 +++++ include/arch/windows/AndroidConfig.h | 7 +++++++ 7 files changed, 37 insertions(+) diff --git a/include/arch/darwin-x86/AndroidConfig.h b/include/arch/darwin-x86/AndroidConfig.h index ad16e0c2..20e00001 100644 --- a/include/arch/darwin-x86/AndroidConfig.h +++ b/include/arch/darwin-x86/AndroidConfig.h @@ -85,6 +85,11 @@ */ #define HAVE_TERMIO_H +/* + * Define this if you have + */ +/* #define HAVE_SYS_SENDFILE_H 1 */ + /* * Define this if you build against MSVCRT.DLL */ diff --git a/include/arch/freebsd-x86/AndroidConfig.h b/include/arch/freebsd-x86/AndroidConfig.h index 39c564b9..b01a854f 100644 --- a/include/arch/freebsd-x86/AndroidConfig.h +++ b/include/arch/freebsd-x86/AndroidConfig.h @@ -90,6 +90,11 @@ */ /* #define HAVE_TERMIO_H */ +/* + * Define this if you have + */ +/* #define HAVE_SYS_SENDFILE_H 1 */ + /* * Define this if you build against MSVCRT.DLL */ diff --git a/include/arch/linux-arm/AndroidConfig.h b/include/arch/linux-arm/AndroidConfig.h index 82e39c01..26547a21 100644 --- a/include/arch/linux-arm/AndroidConfig.h +++ b/include/arch/linux-arm/AndroidConfig.h @@ -91,6 +91,11 @@ */ #define HAVE_TERMIO_H +/* + * Define this if you have + */ +#define HAVE_SYS_SENDFILE_H 1 + /* * Define this if you build against MSVCRT.DLL */ diff --git a/include/arch/linux-sh/AndroidConfig.h b/include/arch/linux-sh/AndroidConfig.h index 4af39d94..67ac2777 100644 --- a/include/arch/linux-sh/AndroidConfig.h +++ b/include/arch/linux-sh/AndroidConfig.h @@ -91,6 +91,11 @@ */ #define HAVE_TERMIO_H +/* + * Define this if you have + */ +#define HAVE_SYS_SENDFILE_H 1 + /* * Define this if you build against MSVCRT.DLL */ diff --git a/include/arch/linux-x86/AndroidConfig.h b/include/arch/linux-x86/AndroidConfig.h index 557ec5f9..31bdb5f9 100644 --- a/include/arch/linux-x86/AndroidConfig.h +++ b/include/arch/linux-x86/AndroidConfig.h @@ -85,6 +85,11 @@ */ #define HAVE_TERMIO_H +/* + * Define this if you have + */ +#define HAVE_SYS_SENDFILE_H 1 + /* * Define this if you build against MSVCRT.DLL */ diff --git a/include/arch/target_linux-x86/AndroidConfig.h b/include/arch/target_linux-x86/AndroidConfig.h index 66057232..d89d0547 100644 --- a/include/arch/target_linux-x86/AndroidConfig.h +++ b/include/arch/target_linux-x86/AndroidConfig.h @@ -77,6 +77,11 @@ */ #define HAVE_TERMIO_H 1 +/* + * Define this if you have + */ +#define HAVE_SYS_SENDFILE_H 1 + /* * Define this if you build against have Microsoft C runtime (MSVCRT.DLL) */ diff --git a/include/arch/windows/AndroidConfig.h b/include/arch/windows/AndroidConfig.h index b240519a..0fc4955e 100644 --- a/include/arch/windows/AndroidConfig.h +++ b/include/arch/windows/AndroidConfig.h @@ -100,6 +100,13 @@ # define HAVE_TERMIO_H #endif +/* + * Define this if you have + */ +#ifdef __CYGWIN__ +# define HAVE_SYS_SENDFILE_H 1 +#endif + /* * Define this if you build against MSVCRT.DLL */ -- cgit v1.2.3