Windows : fix build
curl -Os https://raw.githubusercontent.com/vlang/vc/master/v.c cc -std=gnu11 -w -o v v.c -lm ccK5ic4o.o:v.c:(.text+0x6f62): undefined reference to `__imp_gethostname' collect2.exe: error: ld returned 1 exit statuspull/1196/head
parent
8ef3313d63
commit
a743ecaff9
|
@ -1,5 +1,8 @@
|
||||||
module os
|
module os
|
||||||
|
|
||||||
|
#flag -lws2_32
|
||||||
|
#include <winsock2.h>
|
||||||
|
|
||||||
const (
|
const (
|
||||||
PathSeparator = '\\'
|
PathSeparator = '\\'
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue