ecore : Let's compile ecore with android ndk
authorNicolas Aguirre <aguirre.nicolas@gmail.com>
Mon, 27 Aug 2012 22:05:51 +0000 (22:05 +0000)
committerNicolas Aguirre <aguirre.nicolas@gmail.com>
Mon, 27 Aug 2012 22:05:51 +0000 (22:05 +0000)
SVN revision: 75743

legacy/ecore/configure.ac
legacy/ecore/src/lib/ecore/Ecore.h
legacy/ecore/src/lib/ecore_con/ecore_con_local.c

index e7437c0..7907b3c 100644 (file)
@@ -1248,7 +1248,22 @@ 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 errno.h])
+AC_CHECK_HEADERS([sys/un.h], [], [],
+[
+#include <stdio.h>
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <stddef.h>
+#else
+# ifdef HAVE_STDLIB_H
+#  include <stdlib.h>
+# endif
+#endif
+#ifdef HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
+])
+AC_CHECK_HEADERS([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 f38cfe0..9d8041f 100644 (file)
@@ -359,6 +359,8 @@ sudo make install
 #elif defined (__FreeBSD__) || defined (__OpenBSD__)
 # include <sys/select.h>
 # include <signal.h>
+#elif defined (__ANDROID__)
+# include <sys/select.h>
 #else
 # include <sys/time.h>
 # if !defined (EXOTIC_NO_SIGNAL)
index f26fc17..ac97fb1 100644 (file)
@@ -7,8 +7,12 @@
 #include <unistd.h>
 #include <time.h>
 #include <fcntl.h>
-#include <sys/stat.h>
 #include <sys/types.h>
+#include <sys/stat.h>
+
+#ifdef HAVE_ERRNO_H
+# include <errno.h>
+#endif
 
 #ifdef HAVE_SYS_SOCKET_H
 # include <sys/socket.h>