summaryrefslogtreecommitdiff
path: root/network_core.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-06-17 08:16:58 +0000
committertron <tron@openttd.org>2006-06-17 08:16:58 +0000
commitbdf64588d3c99ccaa7e6fbc2e96a3d2dd032ee6a (patch)
tree2b7b21435c77cd188982419a422bf0c9a05e392d /network_core.h
parentdcfcf7df4ace8aea0e03190a01867892d7278099 (diff)
downloadopenttd-bdf64588d3c99ccaa7e6fbc2e96a3d2dd032ee6a.tar.xz
(svn r5292) -Fix: When using SIOCGIFCONF to detect network interfaces accomodate for the fact that struct sockaddr doesn't have fixed size in all implementations
Diffstat (limited to 'network_core.h')
-rw-r--r--network_core.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/network_core.h b/network_core.h
index 7a9dd4e42..f2373574c 100644
--- a/network_core.h
+++ b/network_core.h
@@ -32,14 +32,12 @@
#define EWOULDBLOCK WSAEWOULDBLOCK
// Windows has some different names for some types..
typedef unsigned long in_addr_t;
-typedef INTERFACE_INFO IFREQ;
#endif // WIN32
// UNIX stuff
#if defined(UNIX)
# define SOCKET int
# define INVALID_SOCKET -1
-typedef struct ifreq IFREQ;
# if !defined(__MORPHOS__) && !defined(__AMIGA__)
# define ioctlsocket ioctl
# if !defined(BEOS_NET_SERVER)
@@ -100,7 +98,6 @@ typedef struct ifreq IFREQ;
#if defined(__OS2__)
# define SOCKET int
# define INVALID_SOCKET -1
-typedef struct ifreq IFREQ;
# define ioctlsocket ioctl
# define closesocket close
# define GET_LAST_ERROR() (sock_errno())