summaryrefslogtreecommitdiff
path: root/src/network/core
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2018-04-29 14:12:23 +0200
committerPatric Stout <truebrain@openttd.org>2018-04-29 15:32:16 +0200
commit85adde74858161240860ed9e4bf67f9be838de45 (patch)
treec49c092551d1b9070afe61447c412b9f0f107a11 /src/network/core
parent8d8b9a026a5915c2bf4591b74d79dfa1dcf791d8 (diff)
downloadopenttd-85adde74858161240860ed9e4bf67f9be838de45.tar.xz
Remove: PSP support
Diffstat (limited to 'src/network/core')
-rw-r--r--src/network/core/host.cpp7
-rw-r--r--src/network/core/os_abstraction.h25
2 files changed, 2 insertions, 30 deletions
diff --git a/src/network/core/host.cpp b/src/network/core/host.cpp
index cf98239f8..e431dde9f 100644
--- a/src/network/core/host.cpp
+++ b/src/network/core/host.cpp
@@ -24,12 +24,7 @@
*/
static void NetworkFindBroadcastIPsInternal(NetworkAddressList *broadcast);
-#if defined(PSP)
-static void NetworkFindBroadcastIPsInternal(NetworkAddressList *broadcast) // PSP implementation
-{
-}
-
-#elif defined(BEOS_NET_SERVER) || defined(__HAIKU__) /* doesn't have neither getifaddrs or net/if.h */
+#if defined(BEOS_NET_SERVER) || defined(__HAIKU__) /* doesn't have neither getifaddrs or net/if.h */
/* Based on Andrew Bachmann's netstat+.c. Big thanks to him! */
extern "C" int _netstat(int fd, char **output, int verbose);
diff --git a/src/network/core/os_abstraction.h b/src/network/core/os_abstraction.h
index 9608f08fa..c24cc9f8f 100644
--- a/src/network/core/os_abstraction.h
+++ b/src/network/core/os_abstraction.h
@@ -194,29 +194,6 @@ static inline void OTTDfreeaddrinfo(struct addrinfo *ai)
#define IPV6_V6ONLY 27
#endif
-#if defined(PSP)
-# include <sys/socket.h>
-# include <netinet/in.h>
-# include <arpa/inet.h>
-# include <pspnet.h>
-# include <pspnet_inet.h>
-# include <pspnet_apctl.h>
-# include <pspnet_resolver.h>
-# include <errno.h>
-# include <unistd.h>
-# include <sys/select.h>
-# include <sys/time.h>
-# include <sys/fd_set.h>
-
-# define TCP_NODELAY 1
-# define SO_NONBLOCK 0x1009
-# define SOCKET int
-# define INVALID_SOCKET -1
-# define INADDR_NONE 0xffffffff
-# define closesocket close
-# define GET_LAST_ERROR() sceNetInetGetErrno()
-#endif /* PSP */
-
/* OS/2 stuff */
#if defined(__OS2__)
# define SOCKET int
@@ -318,7 +295,7 @@ static inline bool SetNonBlocking(SOCKET d)
#else
int nonblocking = 1;
#endif
-#if (defined(__BEOS__) && defined(BEOS_NET_SERVER)) || defined(PSP)
+#if (defined(__BEOS__) && defined(BEOS_NET_SERVER))
return setsockopt(d, SOL_SOCKET, SO_NONBLOCK, &nonblocking, sizeof(nonblocking)) == 0;
#else
return ioctlsocket(d, FIONBIO, &nonblocking) == 0;