summaryrefslogtreecommitdiff
path: root/ares_create_query.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-11-23 14:28:37 +0100
committerYang Tse <yangsita@gmail.com>2012-11-23 14:28:37 +0100
commit93a09eabebb0950dcf44d2513c9c60e71b00692a (patch)
treec6e76f7a4ef0ac45c927310eee916851ff2eb324 /ares_create_query.c
parenta5ce39391ccc68f05ec885810bbc60dbc6e2a0d2 (diff)
downloadc-ares-93a09eabebb0950dcf44d2513c9c60e71b00692a.tar.gz
c-ares-93a09eabebb0950dcf44d2513c9c60e71b00692a.tar.bz2
c-ares-93a09eabebb0950dcf44d2513c9c60e71b00692a.zip
ares_create_query.c: IRIX compilation fix
Diffstat (limited to 'ares_create_query.c')
-rw-r--r--ares_create_query.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ares_create_query.c b/ares_create_query.c
index ef48ad8..8ca9d6b 100644
--- a/ares_create_query.c
+++ b/ares_create_query.c
@@ -37,6 +37,10 @@
#include "ares_dns.h"
#include "ares_private.h"
+#ifndef T_OPT
+# define T_OPT 41 /* EDNS0 option (meta-RR) */
+#endif
+
/* Header format, from RFC 1035:
* 1 1 1 1 1 1
* 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
@@ -201,7 +205,7 @@ int ares_create_query(const char *name, int dnsclass, int type,
q += QFIXEDSZ;
memset(q, 0, EDNSFIXEDSZ);
q++;
- DNS_RR_SET_TYPE(q, ns_t_opt);
+ DNS_RR_SET_TYPE(q, T_OPT);
DNS_RR_SET_CLASS(q, max_udp_size);
}