From a743ecaff91386805143d7390f4fe24456d523af Mon Sep 17 00:00:00 2001 From: unknown-v Date: Tue, 16 Jul 2019 20:00:41 +0200 Subject: [PATCH] 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 --- vlib/os/os_win.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vlib/os/os_win.v b/vlib/os/os_win.v index 6918d9e6fa..d1899dfdfb 100644 --- a/vlib/os/os_win.v +++ b/vlib/os/os_win.v @@ -1,5 +1,8 @@ module os +#flag -lws2_32 +#include + const ( PathSeparator = '\\' )