Proper buildfix for some Windows environments
This commit is contained in:
parent
17b7b1322e
commit
400faff5ba
|
@ -27,6 +27,8 @@
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include <net/net_compat.h>
|
||||||
|
|
||||||
#include <retro_common_api.h>
|
#include <retro_common_api.h>
|
||||||
|
|
||||||
RETRO_BEGIN_DECLS
|
RETRO_BEGIN_DECLS
|
||||||
|
|
|
@ -33,7 +33,6 @@
|
||||||
|
|
||||||
#include <features/features_cpu.h>
|
#include <features/features_cpu.h>
|
||||||
|
|
||||||
#include <net/net_compat.h>
|
|
||||||
#include <net/net_socket.h>
|
#include <net/net_socket.h>
|
||||||
|
|
||||||
int socket_init(void **address, uint16_t port, const char *server, enum socket_type type)
|
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;
|
int error = -1;
|
||||||
socklen_t errsz = sizeof(error);
|
socklen_t errsz = sizeof(error);
|
||||||
|
|
||||||
getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &errsz);
|
getsockopt(fd, SOL_SOCKET, SO_ERROR, (char*)&error, &errsz);
|
||||||
if (error)
|
if (error)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue