We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5132a6d commit adbdb95Copy full SHA for adbdb95
1 file changed
common/net_sys.h
@@ -32,6 +32,7 @@
32
#if defined(PLATFORM_BSD) || defined(PLATFORM_OSX) || \
33
defined(PLATFORM_AMIGA) /* bsdsocket.library */ || \
34
(defined(PLATFORM_OS2) && !defined(__EMX__)) || \
35
+ (defined(__INNOTEK_LIBC__) || defined(__KLIBC__)) || \
36
defined(__GNU__) /* GNU/Hurd */ || \
37
defined(__riscos__) || defined(__HAIKU__)
38
/* struct sockaddr has unsigned char sa_len as the first member in BSD
@@ -109,8 +110,10 @@ typedef int sys_socket_t;
109
110
#define INVALID_SOCKET (-1)
111
#define SOCKET_ERROR (-1)
112
113
+#if !(defined(__INNOTEK_LIBC__) || defined(__KLIBC__))
114
typedef u_long in_addr_t; /* u_int32_t */
115
typedef int socklen_t;
116
+#endif
117
118
#ifdef __EMX__
119
#include <sys/select.h>
0 commit comments