#ifdef HAVE_RESOLV_H
# include <resolv.h>
#endif
- #ifndef C_ANY
- # define C_ANY ns_c_any
+ #ifndef C_IN
+ # define C_IN ns_c_in
#endif
#ifndef T_MX
# define T_MX ns_t_mx
{
ns_msg amsg;
- const int ret = res_query(NULL, C_ANY, T_MX, NULL, 0);
+ const int ret = res_query(NULL, C_IN, T_MX, NULL, 0);
(void) ns_initparse(NULL, ret, &amsg);
const int cnt = ns_msg_count(amsg, S_AN);
#ifdef HAVE_RESOLV_H
# include <resolv.h>
#endif
- #ifndef C_ANY
- # define C_ANY ns_c_any
+ #ifndef C_IN
+ # define C_IN ns_c_in
#endif
#ifndef T_MX
# define T_MX ns_t_mx
{
ns_msg amsg;
- const int ret = res_query(NULL, C_ANY, T_MX, NULL, 0);
+ const int ret = res_query(NULL, C_IN, T_MX, NULL, 0);
(void) ns_initparse(NULL, ret, &amsg);
const int cnt = ns_msg_count(amsg, S_AN);
#ifdef HAVE_RESOLV_H
# include <resolv.h>
#endif
- #ifndef C_ANY
- # define C_ANY ns_c_any
+ #ifndef C_IN
+ # define C_IN ns_c_in
#endif
#ifndef T_MX
# define T_MX ns_t_mx
#endif
]], [[
ns_msg amsg;
- const int ret = res_query(NULL, C_ANY, T_MX, NULL, 0);
+ const int ret = res_query(NULL, C_IN, T_MX, NULL, 0);
(void) ns_initparse(NULL, ret, &amsg);
const int cnt = ns_msg_count(amsg, S_AN);
]])
# include <resolv.h>
#endif
-#ifndef C_ANY
-# define C_ANY ns_c_any
+#ifndef C_IN
+# define C_IN ns_c_in
#endif
#ifndef T_MX
# define T_MX ns_t_mx
if (! host || ! *host)
return 0;
- const int len = res_query(host, C_ANY, T_MX, nsbuf, sizeof nsbuf);
+ const int len = res_query(host, C_IN, T_MX, nsbuf, sizeof nsbuf);
if (len < 0)
return 0;
# include <resolv.h>
#endif
-#ifndef C_ANY
-# define C_ANY ns_c_any
+#ifndef C_IN
+# define C_IN ns_c_in
#endif
#ifndef T_MX
# define T_MX ns_t_mx
if (! host || ! *host)
return 0;
- const int len = res_query(host, C_ANY, T_MX, nsbuf, sizeof nsbuf);
+ const int len = res_query(host, C_IN, T_MX, nsbuf, sizeof nsbuf);
if (len < 0)
return 0;