vita: Redefine network error codes

temporary patch until merge vitasdk/newlib#38
This commit is contained in:
Sunguk Lee 2018-07-22 06:00:17 +09:00
parent 53352c1a8e
commit 93707b42e9
No known key found for this signature in database
GPG Key ID: 20A74A5D37EEA757

View File

@ -50,6 +50,10 @@ typedef socklen_t SOCKADDR_LEN;
#if defined(__vita__)
#define TCP_NODELAY SCE_NET_TCP_NODELAY
#undef EAGAIN
#undef EWOULDBLOCK
#define EAGAIN SCE_NET_EAGAIN
#define EWOULDBLOCK SCE_NET_EWOULDBLOCK
#define sockaddr_in6 sockaddr_in
#define sin6_addr sin_addr