mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
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 status
This commit is contained in:
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
Block a user