mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-05 17:30:27 +00:00
Added STATIC_YOINK and the required dependency between sock and IPHLPAPI library
This commit is contained in:
parent
b9b1e4f3b5
commit
933032ce81
2 changed files with 6 additions and 0 deletions
|
@ -33,6 +33,7 @@ LIBC_SOCK_A_DIRECTDEPS = \
|
|||
LIBC_NT_MSWSOCK \
|
||||
LIBC_NT_NTDLL \
|
||||
LIBC_NT_WS2_32 \
|
||||
LIBC_NT_IPHLPAPI \
|
||||
LIBC_RUNTIME \
|
||||
LIBC_STDIO \
|
||||
LIBC_STR \
|
||||
|
|
|
@ -19,12 +19,16 @@
|
|||
#include "libc/calls/internal.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/nt/winsock.h"
|
||||
#include "libc/nt/iphlpapi.h"
|
||||
#include "libc/sock/internal.h"
|
||||
#include "libc/sock/yoink.inc"
|
||||
#include "libc/sysv/consts/fio.h"
|
||||
#include "libc/sysv/consts/o.h"
|
||||
#include "libc/sysv/consts/sock.h"
|
||||
|
||||
/* ioctl(SIOCGIFCONFIG) uses GetAdaptersAddresses as weak ref */
|
||||
STATIC_YOINK("GetAdaptersAddresses");
|
||||
|
||||
textwindows int sys_socket_nt(int family, int type, int protocol) {
|
||||
int64_t h;
|
||||
struct SockFd *sockfd;
|
||||
|
@ -42,6 +46,7 @@ textwindows int sys_socket_nt(int family, int type, int protocol) {
|
|||
return __winsockerr();
|
||||
}
|
||||
}
|
||||
|
||||
sockfd = calloc(1, sizeof(struct SockFd));
|
||||
sockfd->family = family;
|
||||
sockfd->type = truetype;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue