mirror of
https://github.com/janet-lang/janet
synced 2024-12-27 17:00:27 +00:00
More Windows fixes
This commit is contained in:
parent
ca5406c8e4
commit
e29fa66a74
@ -582,6 +582,10 @@ JANET_CORE_FN(cfun_net_listen,
|
||||
#define sa_ntoa(sa) sa_ntoa_((char [SA_ADDRSTRLEN]){ 0 }, SA_ADDRSTRLEN, (sa))
|
||||
#define sa_family(...) sa_family(__VA_ARGS__)
|
||||
#define sa_port(...) sa_port(__VA_ARGS__)
|
||||
#ifdef JANET_WINDOWS
|
||||
typedef short sa_family_t;
|
||||
typedef unsigned short in_port_t;
|
||||
#endif
|
||||
|
||||
union sockaddr_arg {
|
||||
struct sockaddr *sa;
|
||||
|
Loading…
Reference in New Issue
Block a user