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
pull/1196/head
unknown-v 2019-07-16 20:00:41 +02:00 committed by Alexander Medvednikov
parent 8ef3313d63
commit a743ecaff9
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,8 @@
module os
#flag -lws2_32
#include <winsock2.h>
const (
PathSeparator = '\\'
)