aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2005-11-10 16:55:59 +0000
committerGisle Vanem <gvanem@broadpark.no>2005-11-10 16:55:59 +0000
commit00a7dda273af92f0e58d2d7f0f6e56209919de18 (patch)
treecccf1c465ec2a562097c84f9165290a8d9f28ca6 /ares
parent4dba07c38489375f522af691a3f7b07ae9be5632 (diff)
Use config-win32.h on Windows. Fixes for djgpp.
Diffstat (limited to 'ares')
-rw-r--r--ares/setup.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/ares/setup.h b/ares/setup.h
index d6e037812..831bda460 100644
--- a/ares/setup.h
+++ b/ares/setup.h
@@ -17,12 +17,19 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#else
+
+#ifdef WIN32
+#include "config-win32.h"
+#endif
+
/* simple work-around for now, for systems without configure support */
+#ifndef __DJGPP__
#define ssize_t int
+#endif
#ifndef _MSC_VER
#define socklen_t int
#endif
-#endif
+#endif /* HAVE_CONFIG_H */
/* Recent autoconf versions define these symbols in config.h. We don't want
them (since they collide with the libcurl ones when we build
@@ -61,7 +68,7 @@ typedef int ares_socket_t;
#endif
#if (defined(WIN32) || defined(WATT32)) && \
- !(defined(__MINGW32__) || defined(NETWARE))
+ !(defined(__MINGW32__) || defined(NETWARE) || defined(__DJGPP__))
/* protos for the functions we provide in windows_port.c */
int ares_strncasecmp(const char *s1, const char *s2, int n);
int ares_strcasecmp(const char *s1, const char *s2);