Ecore_con: fix compilation on Windows
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 19 Jun 2012 15:56:44 +0000 (15:56 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 19 Jun 2012 15:56:44 +0000 (15:56 +0000)
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
src/lib/ecore_con/ecore_con_dns.c

index cc44f50..115e75f 100644 (file)
@@ -1248,7 +1248,7 @@ AC_CHECK_HEADERS([net/if.h], [], [],
 # include <sys/socket.h>
 #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"
index 1120ee8..979163f 100644 (file)
 # include <arpa/inet.h>
 #endif
 
+#ifdef HAVE_ERRNO_H
+# include <errno.h>
+#endif
+
 #include "dns.h"
 
 #include "Ecore.h"