From 059ac47170550cdca5feae62f3bfe3d19e7ca4aa Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Tue, 19 Jun 2012 15:56:44 +0000 Subject: [PATCH] Ecore_con: fix compilation on Windows ecore_con_dns.c is using EAGAIN. On linux, errno.h is certainly indirectly included by other header files, it's not the case on Windows. SVN revision: 72489 --- legacy/ecore/configure.ac | 2 +- legacy/ecore/src/lib/ecore_con/ecore_con_dns.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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"