aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-01-04 12:19:06 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-01-04 12:19:06 +0000
commit9ebe4ab60cd25fce9641fe20484e5b649b36bfcb (patch)
tree7f0d9701f126bb9e1b4280c6d2e6fe97c909456e /ares
parenta0edfb90c22a25b2198fd1d67b5678d28090ee1f (diff)
Dominick Meglio's fix to make our private gettimeofday() use the ares_
namespace
Diffstat (limited to 'ares')
-rw-r--r--ares/nameser.h23
-rw-r--r--ares/windows_port.c2
2 files changed, 13 insertions, 12 deletions
diff --git a/ares/nameser.h b/ares/nameser.h
index 196291e8a..f77d73e6e 100644
--- a/ares/nameser.h
+++ b/ares/nameser.h
@@ -18,7 +18,8 @@ struct iovec
#define getpid() _getpid()
int strcasecmp(const char *a, const char *b);
-int gettimeofday(struct timeval *tv, struct timezone *tz);
+int ares_gettimeofday(struct timeval *tv, struct timezone *tz);
+#define gettimeofday(tv,tz) ares_gettimeofday(tv,tz)
#define NS_CMPRSFLGS 0xc0
@@ -35,7 +36,7 @@ typedef enum __ns_class {
/* Query class values which do not appear in resource records */
ns_c_none = 254, /* for prereq. sections in update requests */
ns_c_any = 255, /* Wildcard match. */
- ns_c_max = 65536
+ ns_c_max = 65536
} ns_class;
#define C_IN ns_c_in
@@ -113,7 +114,7 @@ typedef enum __ns_opcode {
/* Opcode 3 is undefined/reserved. */
ns_o_notify = 4, /* Zone change notification. */
ns_o_update = 5, /* Zone update message. */
- ns_o_max = 6
+ ns_o_max = 6
} ns_opcode;
#define QUERY ns_o_query
@@ -147,17 +148,17 @@ typedef enum __ns_rcode {
/* The following are TSIG extended errors */
ns_r_badsig = 16,
ns_r_badkey = 17,
- ns_r_badtime = 18
+ ns_r_badtime = 18
} ns_rcode;
-#define SERVFAIL ns_r_servfail
-#define NOTIMP ns_r_notimpl
-#define REFUSED ns_r_refused
-#define NOERROR ns_r_noerror
-#define FORMERR ns_r_formerr
-#define NXDOMAIN ns_r_nxdomain
+#define SERVFAIL ns_r_servfail
+#define NOTIMP ns_r_notimpl
+#define REFUSED ns_r_refused
+#define NOERROR ns_r_noerror
+#define FORMERR ns_r_formerr
+#define NXDOMAIN ns_r_nxdomain
-#define C_CHAOS ns_c_chaos
+#define C_CHAOS ns_c_chaos
#define C_HS ns_c_hs
#define C_NONE ns_c_none
#define C_ANY ns_c_any
diff --git a/ares/windows_port.c b/ares/windows_port.c
index 215c130b4..fa4adc55f 100644
--- a/ares/windows_port.c
+++ b/ares/windows_port.c
@@ -25,7 +25,7 @@ strcasecmp(const char *a, const char *b)
}
int
-gettimeofday(struct timeval *tv, struct timezone *tz)
+ares_gettimeofday(struct timeval *tv, struct timezone *tz)
{
FILETIME ft;
LARGE_INTEGER li;