From dcc66f4b12e9c587e52d9c8940eac47256e176df Mon Sep 17 00:00:00 2001 From: caro 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. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@72489 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- configure.ac | 2 +- src/lib/ecore_con/ecore_con_dns.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index cc44f50..115e75f 100644 --- a/configure.ac +++ b/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/src/lib/ecore_con/ecore_con_dns.c b/src/lib/ecore_con/ecore_con_dns.c index 1120ee8..979163f 100644 --- a/src/lib/ecore_con/ecore_con_dns.c +++ b/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" -- 2.7.4