1
0
mirror of https://github.com/janet-lang/janet synced 2025-08-10 16:03:46 +00:00

Windows quirk fix

This commit is contained in:
Calvin Rose 2025-08-02 20:04:55 -05:00
parent 4894a4673a
commit 0aee7765cf
2 changed files with 5 additions and 0 deletions

View File

@ -620,6 +620,7 @@ static void janet_timeout_stop(int sig_num) {
static void handle_timeout_worker(JanetTimeout to, int cancel) {
if (!to.has_worker) return;
#ifdef JANET_WINDOWS
(void) cancel;
QueueUserAPC(janet_timeout_stop, to.worker, 0);
WaitForSingleObject(to.worker, INFINITE);
CloseHandle(to.worker);

View File

@ -384,7 +384,11 @@ static struct addrinfo *janet_get_addrinfo(Janet *argv, int32_t offset, int sock
janet_panicf("could not get address info: %s", gai_strerror(status));
}
*is_unix = 0;
#ifdef JANET_WINDOWS
*sizeout = 0;
#else
*sizeout = sizeof(struct sockaddr_un);
#endif
return ai;
}