4 /* Copyright (C) 2004 - 2005 by Daniel Stenberg et al
6 * Permission to use, copy, modify, and distribute this software and its
7 * documentation for any purpose and without fee is hereby granted, provided
8 * that the above copyright notice appear in all copies and that both that
9 * copyright notice and this permission notice appear in supporting
10 * documentation, and that the name of M.I.T. not be used in advertising or
11 * publicity pertaining to distribution of the software without specific,
12 * written prior permission. M.I.T. makes no representations about the
13 * suitability of this software for any purpose. It is provided "as is"
14 * without express or implied warranty.
20 /* simple work-around for now, for systems without configure support */
27 /* Recent autoconf versions define these symbols in config.h. We don't want
28 them (since they collide with the libcurl ones when we build
29 --enable-debug) so we undef them again here. */
31 #undef PACKAGE_TARNAME
32 #undef PACKAGE_VERSION
33 #undef PACKAGE_BUGREPORT
38 /* now typedef our socket type */
39 #if defined(WIN32) && !defined(WATT32)
42 typedef SOCKET ares_socket_t;
43 #define ARES_SOCKET_BAD INVALID_SOCKET
45 typedef int ares_socket_t;
46 #define ARES_SOCKET_BAD -1
49 /* Assume a few thing unless they're set by configure
51 #if !defined(HAVE_SYS_TIME_H) && !defined(_MSC_VER)
52 #define HAVE_SYS_TIME_H
55 #if !defined(HAVE_UNISTD_H) && !defined(_MSC_VER)
56 #define HAVE_UNISTD_H 1
59 #if !defined(HAVE_SYS_UIO_H) && !defined(WIN32) && !defined(MSDOS)
60 #define HAVE_SYS_UIO_H
63 #if (defined(WIN32) || defined(WATT32)) && \
64 !(defined(__MINGW32__) || defined(NETWARE))
65 /* protos for the functions we provide in windows_port.c */
66 int ares_strncasecmp(const char *s1, const char *s2, int n);
67 int ares_strcasecmp(const char *s1, const char *s2);
69 /* use this define magic to prevent us from adding symbol names to the library
70 that is a high-risk to collide with another libraries' attempts to do the
72 #define strncasecmp(a,b,c) ares_strncasecmp(a,b,c)
73 #define strcasecmp(a,b) ares_strcasecmp(a,b)
76 /* IPv6 compatibility */
77 #if !defined(HAVE_AF_INET6)
78 #if defined(HAVE_PF_INET6)
79 #define AF_INET6 PF_INET6
81 #define AF_INET6 AF_MAX+1
85 #endif /* ARES_SETUP_H */