Proper buildfix for some Windows environments

This commit is contained in:
Cthulhu-throwaway 2022-05-31 01:08:45 -03:00
parent 17b7b1322e
commit 400faff5ba
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;
}