aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2007-09-18 18:18:34 +0000
committerGunter Knauf <gk@gknw.de>2007-09-18 18:18:34 +0000
commit7ac7c119be7d01193e08d4bdbd93538a1b416dd3 (patch)
tree750e6e422b574fd33f226bb1c3fb5d11913aab6e /lib
parent4f067b1d1c982c09c0b4a560e890f369d463cc76 (diff)
added a define for Win32 to detect already defined ssize_t.
Diffstat (limited to 'lib')
-rw-r--r--lib/config-win32.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/config-win32.h b/lib/config-win32.h
index 91c63bf23..bd66b56c9 100644
--- a/lib/config-win32.h
+++ b/lib/config-win32.h
@@ -279,6 +279,7 @@
/* Define as the return type of signal handlers (int or void). */
#define RETSIGTYPE void
+#ifndef _SSIZE_T_DEFINED
#if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || defined(__POCC__) || \
defined(__MINGW32__)
#elif defined(_WIN64)
@@ -286,6 +287,8 @@
#else
#define ssize_t int
#endif
+#define _SSIZE_T_DEFINED
+#endif
/* Define to 'int' if socklen_t is not an available 'typedefed' type */
#ifndef HAVE_WS2TCPIP_H