summaryrefslogtreecommitdiff
path: root/config-win32.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-11-25 01:02:52 +0000
committerYang Tse <yangsita@gmail.com>2006-11-25 01:02:52 +0000
commit65fc05826e42985a2fcc394c14a1dc0ed434f502 (patch)
tree0f6f7a33031c70334ce4eb030f3a8f9fdce30a08 /config-win32.h
parent286eafac7b8c4d9de46fab01cb2c1961cd54915d (diff)
downloadc-ares-65fc05826e42985a2fcc394c14a1dc0ed434f502.tar.gz
c-ares-65fc05826e42985a2fcc394c14a1dc0ed434f502.tar.bz2
c-ares-65fc05826e42985a2fcc394c14a1dc0ed434f502.zip
Make sure RETSIGTYPE is properly defined
Diffstat (limited to 'config-win32.h')
-rw-r--r--config-win32.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/config-win32.h b/config-win32.h
index 4b802e1..6fd8118 100644
--- a/config-win32.h
+++ b/config-win32.h
@@ -126,6 +126,29 @@
#endif
/* ---------------------------------------------------------------- */
+/* TYPEDEF REPLACEMENTS */
+/* ---------------------------------------------------------------- */
+
+/* Define this if in_addr_t is not an available 'typedefed' type */
+#define in_addr_t unsigned long
+
+/* Define as the return type of signal handlers (int or void). */
+#define RETSIGTYPE void
+
+/* Define ssize_t if it is not an available 'typedefed' type */
+#if (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || defined(__POCC__)
+#elif defined(_WIN64)
+#define ssize_t __int64
+#else
+#define ssize_t int
+#endif
+
+/* Define to 'int' if socklen_t is not an available 'typedefed' type */
+#ifndef HAVE_WS2TCPIP_H
+#define socklen_t int
+#endif
+
+/* ---------------------------------------------------------------- */
/* STRUCT RELATED */
/* ---------------------------------------------------------------- */