aboutsummaryrefslogtreecommitdiff
path: root/ares/config-win32.h
diff options
context:
space:
mode:
Diffstat (limited to 'ares/config-win32.h')
-rw-r--r--ares/config-win32.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ares/config-win32.h b/ares/config-win32.h
index e8c5d72a4..6f2fbc2bc 100644
--- a/ares/config-win32.h
+++ b/ares/config-win32.h
@@ -196,12 +196,16 @@
#define RETSIGTYPE void
/* Define ssize_t if it is not an available 'typedefed' type */
-#if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || defined(__POCC__)
+#ifndef _SSIZE_T_DEFINED
+#if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || defined(__POCC__) || \
+ defined(__MINGW32__)
#elif defined(_WIN64)
#define ssize_t __int64
#else
#define ssize_t int
#endif
+#define _SSIZE_T_DEFINED
+#endif
/* ---------------------------------------------------------------- */
/* STRUCT RELATED */