summaryrefslogtreecommitdiff
path: root/ares_parse_srv_reply.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-09-06 23:46:07 (GMT)
committerYang Tse <yangsita@gmail.com>2009-09-06 23:46:07 (GMT)
commit4cc09c021621d0a5e4dcf90938d44b76ffdf3df5 (patch)
tree38cd4813e915aecd7306426224321bbdf8cb6672 /ares_parse_srv_reply.c
parentd2f5bde0dba22e0e4cfac898d6e2f8677eefd904 (diff)
downloadc-ares-4cc09c021621d0a5e4dcf90938d44b76ffdf3df5.zip
c-ares-4cc09c021621d0a5e4dcf90938d44b76ffdf3df5.tar.gz
c-ares-4cc09c021621d0a5e4dcf90938d44b76ffdf3df5.tar.bz2
T_SRV portability check
Diffstat (limited to 'ares_parse_srv_reply.c')
-rw-r--r--ares_parse_srv_reply.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ares_parse_srv_reply.c b/ares_parse_srv_reply.c
index 82fd8af..c26d59f 100644
--- a/ares_parse_srv_reply.c
+++ b/ares_parse_srv_reply.c
@@ -47,6 +47,11 @@
#include "ares_dns.h"
#include "ares_private.h"
+/* AIX portability check */
+#ifndef T_SRV
+# define T_SRV 33 /* server selection */
+#endif
+
int
ares_parse_srv_reply (const unsigned char *abuf, int alen,
struct srv_reply **srv_out, int *nsrvreply)