From: Enlightenment S. <no-...@en...> - 2012-06-19 15:56:55
|
Log: 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. Author: caro Date: 2012-06-19 08:56:44 -0700 (Tue, 19 Jun 2012) New Revision: 72489 Trac: http://trac.enlightenment.org/e/changeset/72489 Modified: trunk/ecore/configure.ac trunk/ecore/src/lib/ecore_con/ecore_con_dns.c Modified: trunk/ecore/configure.ac =================================================================== --- trunk/ecore/configure.ac 2012-06-19 15:35:37 UTC (rev 72488) +++ trunk/ecore/configure.ac 2012-06-19 15:56:44 UTC (rev 72489) @@ -1248,7 +1248,7 @@ # 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" Modified: trunk/ecore/src/lib/ecore_con/ecore_con_dns.c =================================================================== --- trunk/ecore/src/lib/ecore_con/ecore_con_dns.c 2012-06-19 15:35:37 UTC (rev 72488) +++ trunk/ecore/src/lib/ecore_con/ecore_con_dns.c 2012-06-19 15:56:44 UTC (rev 72489) @@ -20,6 +20,10 @@ # include <arpa/inet.h> #endif +#ifdef HAVE_ERRNO_H +# include <errno.h> +#endif + #include "dns.h" #include "Ecore.h" |