From c28fa5ded03c888236e8c7f5351cd01b5119ddd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= Date: Fri, 20 Mar 2015 17:40:27 -0300 Subject: [PATCH 1/2] (qb) Set HAVE_GETADDRINFO=yes on windows --- qb/config.libs.sh | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/qb/config.libs.sh b/qb/config.libs.sh index af304ed8c2..af6fff3b28 100644 --- a/qb/config.libs.sh +++ b/qb/config.libs.sh @@ -145,13 +145,19 @@ check_lib NETWORKING "$SOCKETLIB" socket "" "$SOCKETHEADER" if [ "$HAVE_NETWORKING" = 'yes' ]; then HAVE_GETADDRINFO=auto - check_lib GETADDRINFO "$SOCKETLIB" getaddrinfo - if [ "$HAVE_GETADDRINFO" = 'yes' ]; then - HAVE_SOCKET_LEGACY='no' + HAVE_SOCKET_LEGACY=no + + # WinXP+ implements getaddrinfo() + if [ "$OS" = 'Win32' ]; then + HAVE_GETADDRINFO=yes else - HAVE_SOCKET_LEGACY='yes' + check_lib GETADDRINFO "$SOCKETLIB" getaddrinfo + if [ "$HAVE_GETADDRINFO" != 'yes' ]; then + HAVE_SOCKET_LEGACY=yes + echo "Notice: RetroArch will use legacy socket support" + fi fi - HAVE_NETWORK_CMD='yes' + HAVE_NETWORK_CMD=yes [ "$HAVE_NETPLAY" != 'no' ] && HAVE_NETPLAY='yes' else From 79335249d079101ae3e897e1c773e35c69fea0dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= Date: Fri, 20 Mar 2015 17:40:58 -0300 Subject: [PATCH 2/2] (libretro-common/net_compat.c) Fix build --- libretro-common/include/net/net_compat.h | 1 + libretro-common/net/net_compat.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/libretro-common/include/net/net_compat.h b/libretro-common/include/net/net_compat.h index 83af97bbc2..d96a138562 100644 --- a/libretro-common/include/net/net_compat.h +++ b/libretro-common/include/net/net_compat.h @@ -23,6 +23,7 @@ #include #include +#include #if defined(_WIN32) && !defined(_XBOX) #ifndef _WIN32_WINNT diff --git a/libretro-common/net/net_compat.c b/libretro-common/net/net_compat.c index c48db4d898..59d19698c9 100644 --- a/libretro-common/net/net_compat.c +++ b/libretro-common/net/net_compat.c @@ -174,7 +174,6 @@ bool network_init(void) network_deinit(); return false; } - RARCH_LOG("WSA Initialized.\n"); #elif defined(__CELLOS_LV2__) && !defined(__PSL1GHT__) cellSysmoduleLoadModule(CELL_SYSMODULE_NET); sys_net_initialize_network();