Skip to content

Commit adbdb95

Browse files
committed
net_sys.h: fix build OS/2 KLIBC builds.
1 parent 5132a6d commit adbdb95

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

common/net_sys.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#if defined(PLATFORM_BSD) || defined(PLATFORM_OSX) || \
3333
defined(PLATFORM_AMIGA) /* bsdsocket.library */ || \
3434
(defined(PLATFORM_OS2) && !defined(__EMX__)) || \
35+
(defined(__INNOTEK_LIBC__) || defined(__KLIBC__)) || \
3536
defined(__GNU__) /* GNU/Hurd */ || \
3637
defined(__riscos__) || defined(__HAIKU__)
3738
/* struct sockaddr has unsigned char sa_len as the first member in BSD
@@ -109,8 +110,10 @@ typedef int sys_socket_t;
109110
#define INVALID_SOCKET (-1)
110111
#define SOCKET_ERROR (-1)
111112

113+
#if !(defined(__INNOTEK_LIBC__) || defined(__KLIBC__))
112114
typedef u_long in_addr_t; /* u_int32_t */
113115
typedef int socklen_t;
116+
#endif
114117

115118
#ifdef __EMX__
116119
#include <sys/select.h>

0 commit comments

Comments
 (0)