changeset 81888:699eb2ba8cef

(uint16_t): Define if C99 does not appear to be fully supported.
author Jason Rumney <jasonr@gnu.org>
date Sun, 15 Jul 2007 12:14:52 +0000
parents 35ec5dd31861
children bed4242b228c
files nt/inc/sys/socket.h
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/nt/inc/sys/socket.h	Sun Jul 15 08:23:02 2007 +0000
+++ b/nt/inc/sys/socket.h	Sun Jul 15 12:14:52 2007 +0000
@@ -53,6 +53,11 @@
 
 #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