summaryrefslogtreecommitdiff
path: root/core/src/tbox
diff options
context:
space:
mode:
authorruki <[email protected]>2024-08-20 23:53:26 +0800
committerruki <[email protected]>2024-08-20 23:53:26 +0800
commite6195512cadcb7394cf787da38147dbbf11ddc7c (patch)
treec890684bf8faea65eb9f84afbf75e12e6576faed /core/src/tbox
parent4a647b14f86e336e178ba71b7c45c6a5e9e289d8 (diff)
support for cosmocc
Diffstat (limited to 'core/src/tbox')
-rwxr-xr-xcore/src/tbox/inc/linux/tbox.config.h21
m---------core/src/tbox/tbox0
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 f825b1e3a2181bdb6ef4b52ebbb5115be1d573e