summaryrefslogtreecommitdiff
path: root/network_core.h
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2004-12-27 10:40:04 +0000
committertruelight <truelight@openttd.org>2004-12-27 10:40:04 +0000
commit1f4c1e8821dfbb6bbb3e14e544d0801a0dfc8ac8 (patch)
tree1f0b40b7f8c78dba53f4aa7eea0d1eb47d0f1c80 /network_core.h
parentf3c8f40c511871e94f4eeff54d3ccd221797b3ab (diff)
downloadopenttd-1f4c1e8821dfbb6bbb3e14e544d0801a0dfc8ac8.tar.xz
(svn r1281) -Fix: the OS/2 is now finished. Fixes:
- Networking - File selector issue - Keyboard input - Dedicated server console issue (use dedicated.cmd to open a server) - Plus many other minor issues
Diffstat (limited to 'network_core.h')
-rw-r--r--network_core.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/network_core.h b/network_core.h
index bf29116ec..f341531de 100644
--- a/network_core.h
+++ b/network_core.h
@@ -88,7 +88,7 @@ typedef struct ifreq IFREQ;
typedef struct ifreq IFREQ;
# define ioctlsocket ioctl
# define closesocket close
-# define GET_LAST_ERROR() (errno)
+# define GET_LAST_ERROR() (sock_errno())
// Includes needed for OS/2 systems
# include <types.h>
@@ -103,6 +103,7 @@ typedef struct ifreq IFREQ;
# include <sys/time.h>
# include <netdb.h>
# include <nerrno.h>
+# define INADDR_NONE 0xffffffff
typedef unsigned long in_addr_t;
#endif // OS/2