1
0
Fork 0
forked from fun/fun

Added some basic asyncio stuff. (0.39.12)

This commit is contained in:
Johannes Findeisen 2026-03-27 00:44:40 +01:00
commit cb3eb0a498
9 changed files with 328 additions and 1 deletions

View file

@ -36,6 +36,9 @@
#include <unistd.h>
/* For hidden input (password) handling in OP_INPUT_LINE */
#include <termios.h>
/* For non-blocking sockets and polling */
#include <fcntl.h>
#include <poll.h>
// #include <arpa/inet.h>
#endif
@ -857,6 +860,11 @@ void vm_run(VM *vm, Bytecode *entry) {
#include "vm/os/socket_unix_connect.c"
#include "vm/os/socket_unix_listen.c"
/* Async-friendly FD helpers (UNIX) */
#include "vm/os/fd_set_nonblock.c"
#include "vm/os/fd_poll_read.c"
#include "vm/os/fd_poll_write.c"
#ifdef FUN_WITH_PCSC
#include "vm/pcsc/connect.c"
#include "vm/pcsc/disconnect.c"