1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-28 17:30:31 +00:00

More Windows fixes

This commit is contained in:
llmII 2021-09-06 19:42:45 -05:00
parent ca5406c8e4
commit e29fa66a74
No known key found for this signature in database
GPG Key ID: E3AD2E259F58A9A0

View File

@ -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_ntoa(sa) sa_ntoa_((char [SA_ADDRSTRLEN]){ 0 }, SA_ADDRSTRLEN, (sa))
#define sa_family(...) sa_family(__VA_ARGS__) #define sa_family(...) sa_family(__VA_ARGS__)
#define sa_port(...) sa_port(__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 { union sockaddr_arg {
struct sockaddr *sa; struct sockaddr *sa;