1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/net/init_nix.c.v

18 lines
243 B
V
Raw Normal View History

2019-08-24 02:48:40 +03:00
module net
#include <sys/socket.h>
#include <unistd.h>
#include <netinet/in.h>
2020-07-02 22:27:36 +03:00
#include <arpa/inet.h>
2019-08-24 02:48:40 +03:00
#include <netdb.h>
2019-10-10 20:24:36 +03:00
#include <errno.h>
fn error_code() int {
2019-12-22 01:41:42 +03:00
return C.errno
2019-10-10 20:24:36 +03:00
}
pub const (
2020-05-22 18:36:09 +03:00
msg_nosignal = 0x4000
)
2019-12-22 01:41:42 +03:00
#flag solaris -lsocket