From b4e5b79669b3dce4747f9156361944da4a3d4851 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 8 May 2020 00:35:13 +0800 Subject: disable sendfile for bsd --- core/src/tbox/inc/bsd/tbox.config.h | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/core/src/tbox/inc/bsd/tbox.config.h b/core/src/tbox/inc/bsd/tbox.config.h index dff3a0dad..d4a61c1a7 100755 --- a/core/src/tbox/inc/bsd/tbox.config.h +++ b/core/src/tbox/inc/bsd/tbox.config.h @@ -137,11 +137,7 @@ #define TB_CONFIG_POSIX_HAVE_PTHREAD_GETSPECIFIC 1 #define TB_CONFIG_POSIX_HAVE_PTHREAD_KEY_CREATE 1 #define TB_CONFIG_POSIX_HAVE_PTHREAD_KEY_DELETE 1 -#if defined(__ANDROID__) -/* #undef TB_CONFIG_POSIX_HAVE_PTHREAD_SETAFFINITY_NP */ -#else -# define TB_CONFIG_POSIX_HAVE_PTHREAD_SETAFFINITY_NP 1 -#endif +#define TB_CONFIG_POSIX_HAVE_PTHREAD_SETAFFINITY_NP 1 #define TB_CONFIG_POSIX_HAVE_SOCKET 1 #define TB_CONFIG_POSIX_HAVE_POLL 1 #define TB_CONFIG_POSIX_HAVE_OPENDIR 1 @@ -165,24 +161,16 @@ #define TB_CONFIG_POSIX_HAVE_PWRITE64 1 #define TB_CONFIG_POSIX_HAVE_FDATASYNC 1 /* #undef TB_CONFIG_POSIX_HAVE_COPYFILE */ -#define TB_CONFIG_POSIX_HAVE_SENDFILE 1 +/* #undef TB_CONFIG_POSIX_HAVE_SENDFILE */ #define TB_CONFIG_POSIX_HAVE_EPOLL_CREATE 1 #define TB_CONFIG_POSIX_HAVE_EPOLL_WAIT 1 -#if defined(__ANDROID__) -/* #undef TB_CONFIG_POSIX_HAVE_POSIX_SPAWNP */ -#else -# define TB_CONFIG_POSIX_HAVE_POSIX_SPAWNP 1 -#endif +#define TB_CONFIG_POSIX_HAVE_POSIX_SPAWNP 1 #define TB_CONFIG_POSIX_HAVE_EXECVP 1 #define TB_CONFIG_POSIX_HAVE_EXECVPE 1 #define TB_CONFIG_POSIX_HAVE_FORK 1 #define TB_CONFIG_POSIX_HAVE_VFORK 1 #define TB_CONFIG_POSIX_HAVE_WAITPID 1 -#if defined(__ANDROID__) -/* #undef TB_CONFIG_POSIX_HAVE_GETDTABLESIZE */ -#else -# define TB_CONFIG_POSIX_HAVE_GETDTABLESIZE 1 -#endif +#define TB_CONFIG_POSIX_HAVE_GETDTABLESIZE 1 #define TB_CONFIG_POSIX_HAVE_GETRLIMIT 1 #define TB_CONFIG_POSIX_HAVE_GETADDRINFO 1 #define TB_CONFIG_POSIX_HAVE_GETNAMEINFO 1 -- cgit v1.3.1