From 303254eb674991bbb79b887b0d49fef48ae5abd4 Mon Sep 17 00:00:00 2001 From: Dan Bornstein <danfuzz@android.com> Date: Fri, 30 Oct 2009 17:15:13 -0700 Subject: [PATCH] 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 ad16e0c262..20e0000158 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 <sys/sendfile.h> + */ +/* #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 39c564b93a..b01a854f37 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 <sys/sendfile.h> + */ +/* #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 82e39c01df..26547a2163 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 <sys/sendfile.h> + */ +#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 4af39d94e5..67ac2777d2 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 <sys/sendfile.h> + */ +#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 557ec5f946..31bdb5f95c 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 <sys/sendfile.h> + */ +#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 6605723291..d89d0547ef 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 <sys/sendfile.h> + */ +#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 b240519a05..0fc4955ed2 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 <sys/sendfile.h> + */ +#ifdef __CYGWIN__ +# define HAVE_SYS_SENDFILE_H 1 +#endif + /* * Define this if you build against MSVCRT.DLL */ -- GitLab