diff options
| author | ruki <[email protected]> | 2024-08-21 00:19:12 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-08-21 00:19:12 +0800 |
| commit | d3effb1bc2076932bbcc319a696be3f40b95d4b7 (patch) | |
| tree | 9506f31fb2025b55875e6aeca729418284dfdbf3 /core/src | |
| parent | 624b853a4ec3397eb79c4745e365a87f079f9a0f (diff) | |
| parent | 594be318a7a10b95002451a66b892b99338eed53 (diff) | |
Merge pull request #5488 from xmake-io/cosmocc
Support to build xmake using cosmocc
Diffstat (limited to 'core/src')
| -rwxr-xr-x | core/src/tbox/inc/linux/tbox.config.h | 21 | ||||
| m--------- | core/src/tbox/tbox | 0 |
2 files changed, 17 insertions, 4 deletions
diff --git a/core/src/tbox/inc/linux/tbox.config.h b/core/src/tbox/inc/linux/tbox.config.h index fb8c99830..ec06d847b 100755 --- a/core/src/tbox/inc/linux/tbox.config.h +++ b/core/src/tbox/inc/linux/tbox.config.h @@ -171,8 +171,13 @@ #define TB_CONFIG_POSIX_HAVE_FDATASYNC 1 /* #undef TB_CONFIG_POSIX_HAVE_COPYFILE */ #define TB_CONFIG_POSIX_HAVE_SENDFILE 1 -#define TB_CONFIG_POSIX_HAVE_EPOLL_CREATE 1 -#define TB_CONFIG_POSIX_HAVE_EPOLL_WAIT 1 +#ifdef __COSMOPOLITAN__ +/* #undef TB_CONFIG_POSIX_HAVE_EPOLL_CREATE */ +/* #undef TB_CONFIG_POSIX_HAVE_EPOLL_WAIT */ +#else +# define TB_CONFIG_POSIX_HAVE_EPOLL_CREATE 1 +# define TB_CONFIG_POSIX_HAVE_EPOLL_WAIT 1 +#endif #if defined(__ANDROID__) /* #undef TB_CONFIG_POSIX_HAVE_POSIX_SPAWNP */ #else @@ -196,7 +201,11 @@ #define TB_CONFIG_POSIX_HAVE_FCNTL 1 #define TB_CONFIG_POSIX_HAVE_PIPE 1 /* #undef TB_CONFIG_POSIX_HAVE_PIPE2 */ -#define TB_CONFIG_POSIX_HAVE_MKFIFO 1 +#ifdef __COSMOPOLITAN__ +/* #undef TB_CONFIG_POSIX_HAVE_MKFIFO */ +#else +# define TB_CONFIG_POSIX_HAVE_MKFIFO 1 +#endif #define TB_CONFIG_POSIX_HAVE_FUTIMENS 1 #define TB_CONFIG_POSIX_HAVE_UTIMENSAT 1 @@ -211,6 +220,10 @@ /* #undef TB_CONFIG_SYSTEMV_HAVE_VALGRIND_STACK_REGISTER */ // linux functions -#define TB_CONFIG_LINUX_HAVE_INOTIFY_INIT 1 +#ifdef __COSMOPOLITAN__ +/* #undef TB_CONFIG_LINUX_HAVE_INOTIFY_INIT */ +#else +# define TB_CONFIG_LINUX_HAVE_INOTIFY_INIT 1 +#endif #endif diff --git a/core/src/tbox/tbox b/core/src/tbox/tbox -Subproject 8ada0ab7f7eb98fa5eb4928b61b7701b0126a72 +Subproject 553c32406a09e3e0a0a8e8dfed741b4888ba07c |
