summaryrefslogtreecommitdiffstats
path: root/winsup/w32api/include/winsock.h
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/w32api/include/winsock.h')
-rw-r--r--winsup/w32api/include/winsock.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/winsup/w32api/include/winsock.h b/winsup/w32api/include/winsock.h
index 885354aa2..85917e388 100644
--- a/winsup/w32api/include/winsock.h
+++ b/winsup/w32api/include/winsock.h
@@ -17,12 +17,14 @@
extern "C" {
#endif
-#ifndef _SYS_TYPES_H
+#if !defined ( _BSDTYPES_DEFINED ) && !defined ( _SYS_TYPES_H )
+/* also defined in gmon.h and in cygwin's sys/types */
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned int u_int;
typedef unsigned long u_long;
-#endif /* ndef _SYS_TYPES_H */
+#define _BSDTYPES_DEFINED
+#endif /* ndef _BSDTYPES_ _SYS_TYPES_H */
typedef u_int SOCKET;
#ifndef FD_SETSIZE
#define FD_SETSIZE 64