diff options
| author | ruki <[email protected]> | 2019-07-29 23:20:55 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-07-29 14:05:35 +0800 |
| commit | 61b7993f0528af4c871b5ae3aaf32d7831e30625 (patch) | |
| tree | 7d19fde7ecc8d19e7b8815790ce1bbbf636749eb | |
| parent | 67063ff1ae2edea2b6e13c300dd0af5778e6c7dd (diff) | |
improve to compile support for termux/android
| -rwxr-xr-x | core/src/tbox/inc/linux/tbox.config.h | 18 | ||||
| m--------- | core/src/tbox/tbox | 0 |
2 files changed, 15 insertions, 3 deletions
diff --git a/core/src/tbox/inc/linux/tbox.config.h b/core/src/tbox/inc/linux/tbox.config.h index 6e801af8e..43fe30cf9 100755 --- a/core/src/tbox/inc/linux/tbox.config.h +++ b/core/src/tbox/inc/linux/tbox.config.h @@ -88,7 +88,11 @@ #define TB_CONFIG_LIBC_HAVE_SETJMP 1 #define TB_CONFIG_LIBC_HAVE_SIGSETJMP 1 #define TB_CONFIG_LIBC_HAVE_KILL 1 -/*#define TB_CONFIG_LIBC_HAVE_BACKTRACE 0*/ +#if defined(__ANDROID__) +/* #undef TB_CONFIG_LIBC_HAVE_BACKTRACE */ +#else +# define TB_CONFIG_LIBC_HAVE_BACKTRACE 1 +#endif #define TB_CONFIG_LIBC_HAVE_SETLOCALE 1 #define TB_CONFIG_LIBC_HAVE_FPUTC 1 #define TB_CONFIG_LIBC_HAVE_FGETC 1 @@ -137,7 +141,11 @@ #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 -/*#define TB_CONFIG_POSIX_HAVE_PTHREAD_SETAFFINITY_NP 0*/ +#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_SOCKET 1 #define TB_CONFIG_POSIX_HAVE_POLL 1 #define TB_CONFIG_POSIX_HAVE_OPENDIR 1 @@ -164,7 +172,11 @@ #define TB_CONFIG_POSIX_HAVE_SENDFILE 1 #define TB_CONFIG_POSIX_HAVE_EPOLL_CREATE 1 #define TB_CONFIG_POSIX_HAVE_EPOLL_WAIT 1 -#define TB_CONFIG_POSIX_HAVE_POSIX_SPAWNP 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_EXECVP 1 #define TB_CONFIG_POSIX_HAVE_EXECVPE 1 #define TB_CONFIG_POSIX_HAVE_FORK 1 diff --git a/core/src/tbox/tbox b/core/src/tbox/tbox -Subproject 4ac60edcc97c37b41f08f9c67adfe52c32c2567 +Subproject 3d0518b8a1083bae849221a97025e33dc90bb9b |
