diff --git a/legacy/ecore/configure.ac b/legacy/ecore/configure.ac index cc44f50d4c..115e75f035 100644 --- a/legacy/ecore/configure.ac +++ b/legacy/ecore/configure.ac @@ -1248,7 +1248,7 @@ AC_CHECK_HEADERS([net/if.h], [], [], # include #endif ]) -AC_CHECK_HEADERS([sys/un.h arpa/inet.h arpa/nameser.h netinet/tcp.h netinet/in.h ws2tcpip.h netdb.h]) +AC_CHECK_HEADERS([sys/un.h arpa/inet.h arpa/nameser.h netinet/tcp.h netinet/in.h ws2tcpip.h netdb.h errno.h]) if test "x${ac_cv_header_netdb_h}" = "xyes" ; then have_addrinfo="yes" diff --git a/legacy/ecore/src/lib/ecore_con/ecore_con_dns.c b/legacy/ecore/src/lib/ecore_con/ecore_con_dns.c index 1120ee8077..979163fa31 100644 --- a/legacy/ecore/src/lib/ecore_con/ecore_con_dns.c +++ b/legacy/ecore/src/lib/ecore_con/ecore_con_dns.c @@ -20,6 +20,10 @@ # include #endif +#ifdef HAVE_ERRNO_H +# include +#endif + #include "dns.h" #include "Ecore.h"