summaryrefslogtreecommitdiff
path: root/net/libcares/patches/patch-aa
blob: 429937368ecf52b9b1410a2f66b54dbd6603aa22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$NetBSD: patch-aa,v 1.4 2010/07/25 13:09:42 obache Exp $

--- ares.h.orig	2008-12-04 12:53:03.000000000 +0000
+++ ares.h
@@ -218,6 +218,13 @@ struct ares_options {
   int nsort;
 };
 
+struct ares_config_info {
+	int timeout;
+	int tries;
+	int numservers;
+	char **servers;
+};
+
 struct hostent;
 struct timeval;
 struct sockaddr;
@@ -313,7 +320,7 @@ int ares_parse_ns_reply(const unsigned c
 void ares_free_string(void *str);
 void ares_free_hostent(struct hostent *host);
 const char *ares_strerror(int code);
-
+int ares_get_config(struct ares_config_info *d, ares_channel c);
 #ifdef  __cplusplus
 }
 #endif