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
commit9e130fe09e615321de59bede61dc9338d14dff00 (patch)
tree2b7b21435c77cd188982419a422bf0c9a05e392d /network_core.h
parent24e31b69cc786f96fbd4e6b0f842846f32c72bc0 (diff)
downloadopenttd-9e130fe09e615321de59bede61dc9338d14dff00.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())