aboutsummaryrefslogtreecommitdiffstats
path: root/nt/inc/sys
diff options
context:
space:
mode:
authorJason Rumney <[email protected]>2007-07-15 12:14:52 +0000
committerJason Rumney <[email protected]>2007-07-15 12:14:52 +0000
commitbfbe85fc88a120cf98641823478b590c6db6bfa0 (patch)
tree4c1fb854c234f8c72dae7b1934684be43bc78b64 /nt/inc/sys
parentf1de8c774164ebf596d101200e2e87222dbd8523 (diff)
(uint16_t): Define if C99 does not appear to be fully supported.
Diffstat (limited to 'nt/inc/sys')
-rw-r--r--nt/inc/sys/socket.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/nt/inc/sys/socket.h b/nt/inc/sys/socket.h
index 2e52c74691..a9825ee197 100644
--- a/nt/inc/sys/socket.h
+++ b/nt/inc/sys/socket.h
@@ -53,6 +53,11 @@ Boston, MA 02110-1301, USA. */
#include <winsock2.h>
#include <ws2tcpip.h>
+/* process.c uses uint16_t (from C99) for IPv6, but
+ apparently it is not defined in some versions of mingw and msvc. */
+#ifndef UINT16_C
+typedef unsigned short uint16_t;
+#endif
/* redefine select to reference our version */
#ifdef MUST_REDEF_SELECT