From 6f137587d13a67efeaf38176ad081d0be6ea8da2 Mon Sep 17 00:00:00 2001 From: Andre Leiradella Date: Wed, 28 Oct 2015 21:25:27 -0200 Subject: [PATCH] initialize the network in net_http_new_socket --- libretro-common/net/net_http.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libretro-common/net/net_http.c b/libretro-common/net/net_http.c index bcfb6a35b2..a3dc3ce3d1 100644 --- a/libretro-common/net/net_http.c +++ b/libretro-common/net/net_http.c @@ -74,6 +74,9 @@ static int net_http_new_socket(const char *domain, int port) #endif struct addrinfo hints, *addr = NULL; char portstr[16] = {0}; + + /* Initialize the network. */ + network_init(); snprintf(portstr, sizeof(portstr), "%i", port);