aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/vlib/net/net_nix.c.v
blob: a9fa5310103915d29f0f183ad70fe0072ce79856 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
module net

#include <unistd.h>
#include <sys/select.h>
// inet.h is needed for inet_ntop on macos
#include <arpa/inet.h>
#include <netdb.h>
#include <errno.h>
#include <fcntl.h>

#flag solaris -lsocket

fn error_code() int {
	return C.errno
}

fn init() {
}

pub const (
	msg_nosignal = 0x4000
)

const (
	error_ewouldblock = C.EWOULDBLOCK
)