linux/errqueue.h \
ncurses.h \
ncurses/curses.h \
+ netdb.h \
netinet/in.h \
socket.h \
sys/cdefs.h \
#include <errno.h>
#include <sys/errno.h>
]])
-AC_CHECK_DECLS([AI_IDN], [], [], [[
-#include <sys/types.h>
-#ifdef HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
-#endif
-#include <netdb.h>
- ]])
-
AC_CHECK_TYPE([socklen_t],
[AC_DEFINE([HAVE_SOCKLEN_T], [], [Define if your system has socklen_t])], [],
[[#include <netinet/in.h>
memset(&hints, 0, sizeof hints);
hints.ai_family = ctl->af;
hints.ai_socktype = SOCK_DGRAM;
-#if HAVE_DECL_AI_IDN
+#ifdef AI_IDN
hints.ai_flags = AI_IDN;
#endif
gai_error = getaddrinfo(name, NULL, &hints, res);
memset(&hints, 0, sizeof hints);
hints.ai_family = lookup_ctl.af;
hints.ai_socktype = SOCK_DGRAM;
-#if HAVE_DECL_AI_IDN
+#ifdef AI_IDN
hints.ai_flags = AI_IDN;
#endif
gai_error = getaddrinfo(names->name, NULL, &hints, &res);