mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Proper buildfix for some Windows environments
This commit is contained in:
parent
17b7b1322e
commit
400faff5ba
2 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue