1
0
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:
unknown-v 2019-07-16 20:00:41 +02:00 committed by Alexander Medvednikov
parent 8ef3313d63
commit a743ecaff9

View File

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