mirror of
https://github.com/libretro/RetroArch
synced 2025-03-21 04:21:13 +00:00
Merge pull request #13990 from Cthulhu-throwaway/netplay-cleanup
Proper buildfix for some Windows environments
This commit is contained in:
commit
cb6b41e10f
@ -27,6 +27,8 @@
|
||||
#include <boolean.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <net/net_compat.h>
|
||||
|
||||
#include <retro_common_api.h>
|
||||
|
||||
RETRO_BEGIN_DECLS
|
||||
|
@ -33,7 +33,6 @@
|
||||
|
||||
#include <features/features_cpu.h>
|
||||
|
||||
#include <net/net_compat.h>
|
||||
#include <net/net_socket.h>
|
||||
|
||||
int socket_init(void **address, uint16_t port, const char *server, enum socket_type type)
|
||||
@ -466,7 +465,7 @@ bool socket_connect_with_timeout(int fd, void *data, unsigned timeout)
|
||||
int error = -1;
|
||||
socklen_t errsz = sizeof(error);
|
||||
|
||||
getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &errsz);
|
||||
getsockopt(fd, SOL_SOCKET, SO_ERROR, (char*)&error, &errsz);
|
||||
if (error)
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user