vita: Apply newlib changes

no more need to define `TCP_NODELAY` and `sockaddr_in6` parts
This commit is contained in:
Sunguk Lee
2019-08-14 03:00:16 +09:00
parent 7de68207f0
commit 31a1384379

View File

@@ -22,12 +22,7 @@ typedef int SOCKADDR_LEN;
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/select.h>
#ifndef __vita__
#include <netinet/tcp.h>
#else
#include <psp2/net/net.h>
#include <enet/enet.h>
#endif
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
@@ -45,14 +40,6 @@ typedef ssize_t SOCK_RET;
typedef socklen_t SOCKADDR_LEN;
#endif
#if defined(__vita__)
#define TCP_NODELAY SCE_NET_TCP_NODELAY
#define sockaddr_in6 sockaddr_in
#define sin6_addr sin_addr
#define sin6_port sin_port
#endif
#define LastSocketFail() ((LastSocketError() != 0) ? LastSocketError() : -1)
// IPv6 addresses have 2 extra characters for URL escaping