LibCore: Implement System::socketpair on Windows

This commit is contained in:
stasoid 2024-12-17 21:18:02 +05:00 committed by Andrew Kaster
parent 886a8fca86
commit 4ae3522b10
Notes: github-actions[bot] 2025-02-14 16:40:14 +00:00
6 changed files with 124 additions and 3 deletions

View file

@ -32,11 +32,11 @@
# include <termios.h>
# include <utime.h>
#else
# include "SocketAddressWindows.h"
# define O_CLOEXEC O_NOINHERIT
# define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
# define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
using sighandler_t = void (*)(int);
using socklen_t = int;
#endif
#if !defined(AK_OS_BSD_GENERIC) && !defined(AK_OS_ANDROID) && !defined(AK_OS_WINDOWS)