aboutsummaryrefslogtreecommitdiff
path: root/ares/setup.h
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2005-12-20 20:48:38 +0000
committerGisle Vanem <gvanem@broadpark.no>2005-12-20 20:48:38 +0000
commitf1f32477e35aba50b84ec9892cd8b3357d2100cb (patch)
treee4fbf5cd545ee4c3e20b3c1bdd50a00ada49472d /ares/setup.h
parentdf2b1251a09a9fca8e67d37726bdfd2296d2a5e2 (diff)
Changes for PellesC for Win32. It needs <unistd.h> for 'ssize_t'. Hence the
rearrangement in ares_process.c.
Diffstat (limited to 'ares/setup.h')
-rw-r--r--ares/setup.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/ares/setup.h b/ares/setup.h
index 73ef0f11c..44261411b 100644
--- a/ares/setup.h
+++ b/ares/setup.h
@@ -39,10 +39,10 @@
#endif /* HAVE_CONFIG_H */
-/*
+/*
* Include header files for windows builds before redefining anything.
- * Use this preproessor block only to include or exclude windows.h,
- * winsock2.h, ws2tcpip.h or winsock.h. Any other windows thing belongs
+ * Use this preproessor block only to include or exclude windows.h,
+ * winsock2.h, ws2tcpip.h or winsock.h. Any other windows thing belongs
* to any other further and independant block.
*/
@@ -64,12 +64,13 @@
#endif
/*
- * Work-arounds for systems without configure support
+ * Work-arounds for systems without configure support
*/
#ifndef HAVE_CONFIG_H
-#if defined(__DJGPP__) || (defined(__WATCOMC__) && (__WATCOMC__ >= 1240))
+#if defined(__DJGPP__) || (defined(__WATCOMC__) && (__WATCOMC__ >= 1240)) || \
+ defined(__POCC__)
#else
#define ssize_t int
#endif
@@ -80,8 +81,8 @@
#endif /* HAVE_CONFIG_H */
-/*
- * Recent autoconf versions define these symbols in config.h. We don't
+/*
+ * Recent autoconf versions define these symbols in config.h. We don't
* want them (since they collide with the libcurl ones when we build
* --enable-debug) so we undef them again here.
*/
@@ -94,8 +95,8 @@
#undef VERSION
#undef PACKAGE
-/*
- * Typedef our socket type
+/*
+ * Typedef our socket type
*/
#if defined(WIN32) && !defined(WATT32)
@@ -106,7 +107,7 @@ typedef int ares_socket_t;
#define ARES_SOCKET_BAD -1
#endif
-/*
+/*
* Assume a few thing unless they're set by configure
*/