summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorruki <[email protected]>2019-11-16 20:20:45 +0800
committerGitHub <[email protected]>2019-11-16 20:20:45 +0800
commit252bf8a87ab7e4e5d21113f1ffa62375db108523 (patch)
tree02422c25a96d33955edb79c5c4b82d7f4492505f /core
parent48279d52a7137a6534011c4bfdbb398e208c6b29 (diff)
fix compile errors for android
Diffstat (limited to 'core')
-rwxr-xr-xcore/src/tbox/inc/linux/tbox.config.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/src/tbox/inc/linux/tbox.config.h b/core/src/tbox/inc/linux/tbox.config.h
index 43fe30cf9..c2ad5337a 100755
--- a/core/src/tbox/inc/linux/tbox.config.h
+++ b/core/src/tbox/inc/linux/tbox.config.h
@@ -182,7 +182,11 @@
#define TB_CONFIG_POSIX_HAVE_FORK 1
#define TB_CONFIG_POSIX_HAVE_VFORK 1
#define TB_CONFIG_POSIX_HAVE_WAITPID 1
-#define TB_CONFIG_POSIX_HAVE_GETDTABLESIZE 1
+#if defined(__ANDROID__)
+/* #undef TB_CONFIG_POSIX_HAVE_GETDTABLESIZE */
+#else
+# define TB_CONFIG_POSIX_HAVE_GETDTABLESIZE 1
+#endif
#define TB_CONFIG_POSIX_HAVE_GETRLIMIT 1
#define TB_CONFIG_POSIX_HAVE_GETADDRINFO 1
#define TB_CONFIG_POSIX_HAVE_GETNAMEINFO 1