Merge pull request #13990 from Cthulhu-throwaway/netplay-cleanup

Proper buildfix for some Windows environments
This commit is contained in:
LibretroAdmin 2022-05-31 05:13:04 +01:00 committed by GitHub
commit cb6b41e10f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -27,6 +27,8 @@
#include <boolean.h>
#include <string.h>
#include <net/net_compat.h>
#include <retro_common_api.h>
RETRO_BEGIN_DECLS

View File

@ -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;
}