From 67527c770d3cd3b972007737358cac62b84aa044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Mon, 18 Sep 2023 18:02:48 +0200 Subject: [PATCH] net: fix IPV6_V6ONLY being 0, should be 27 on win32 --- engine/joint/v4k.h | 4 ++-- engine/split/v4k.x.inl | 2 +- engine/split/v4k_system.c | 2 +- engine/v4k | 2 +- engine/v4k.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/engine/joint/v4k.h b/engine/joint/v4k.h index 9896071..b8bd187 100644 --- a/engine/joint/v4k.h +++ b/engine/joint/v4k.h @@ -31598,7 +31598,7 @@ int gladLoadGL( GLADloadfunc load) { #if defined __TINYC__ && defined _WIN32 #define MAPVK_VSC_TO_VK 1 #define MAPVK_VK_TO_VSC 0 -#define IPV6_V6ONLY 0 +#define IPV6_V6ONLY 27 #define _WIN32_WINNT_VISTA 0 #define _WIN32_WINNT_WINXP 0 #define _WIN32_WINNT_WIN7 0 @@ -345565,7 +345565,7 @@ const char * app_exec( const char *cmd ) { } void app_spawn( const char *cmd ) { - if( !cmd[0] ) return "0 "; + if( !cmd[0] ) return; cmd = file_normalize(cmd); system(cmd); diff --git a/engine/split/v4k.x.inl b/engine/split/v4k.x.inl index 09c7cb9..c25f8f4 100644 --- a/engine/split/v4k.x.inl +++ b/engine/split/v4k.x.inl @@ -62,7 +62,7 @@ #if defined __TINYC__ && defined _WIN32 #define MAPVK_VSC_TO_VK 1 #define MAPVK_VK_TO_VSC 0 -#define IPV6_V6ONLY 0 +#define IPV6_V6ONLY 27 #define _WIN32_WINNT_VISTA 0 #define _WIN32_WINNT_WINXP 0 #define _WIN32_WINNT_WIN7 0 diff --git a/engine/split/v4k_system.c b/engine/split/v4k_system.c index dc9208e..e6712fc 100644 --- a/engine/split/v4k_system.c +++ b/engine/split/v4k_system.c @@ -107,7 +107,7 @@ const char * app_exec( const char *cmd ) { } void app_spawn( const char *cmd ) { - if( !cmd[0] ) return "0 "; + if( !cmd[0] ) return; cmd = file_normalize(cmd); system(cmd); diff --git a/engine/v4k b/engine/v4k index 38eb774..d864bf7 100644 --- a/engine/v4k +++ b/engine/v4k @@ -13974,7 +13974,7 @@ int gladLoadGL( GLADloadfunc load) { #if defined __TINYC__ && defined _WIN32 #define MAPVK_VSC_TO_VK 1 #define MAPVK_VK_TO_VSC 0 -#define IPV6_V6ONLY 0 +#define IPV6_V6ONLY 27 #define _WIN32_WINNT_VISTA 0 #define _WIN32_WINNT_WINXP 0 #define _WIN32_WINNT_WIN7 0 diff --git a/engine/v4k.c b/engine/v4k.c index e37cbba..0f17309 100644 --- a/engine/v4k.c +++ b/engine/v4k.c @@ -16260,7 +16260,7 @@ const char * app_exec( const char *cmd ) { } void app_spawn( const char *cmd ) { - if( !cmd[0] ) return "0 "; + if( !cmd[0] ) return; cmd = file_normalize(cmd); system(cmd);