summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorruki <[email protected]>2020-05-08 00:35:13 +0800
committerruki <[email protected]>2020-05-07 21:31:24 +0800
commitb4e5b79669b3dce4747f9156361944da4a3d4851 (patch)
tree8af1c9e33d28f6963ff5f72148ff4605caba16af /core/src
parenta0695202a40c1d319b6808e01c2ae6eca49864c3 (diff)
disable sendfile for bsd
Diffstat (limited to 'core/src')
-rwxr-xr-xcore/src/tbox/inc/bsd/tbox.config.h20
1 files 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