From c1cecbab40ef2d70446308aabdef10d9c8e21be1 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Mon, 26 Nov 2018 01:32:29 +0100 Subject: support for android eabi builds Signed-off-by: Toni Uhlig --- src/ptunnel.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ptunnel.h') diff --git a/src/ptunnel.h b/src/ptunnel.h index 966f5ba..8f77458 100644 --- a/src/ptunnel.h +++ b/src/ptunnel.h @@ -45,7 +45,9 @@ #define PING_TUNNEL_H 1 #ifndef WIN32 +#ifndef __ANDROID__ #include +#endif #include #include #include -- cgit v1.2.3 From a2eee970b908ab3f898b20a546c6bc0517bd2d17 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Mon, 26 Nov 2018 18:08:51 +0100 Subject: fix configure error for OpenWrt also (see c1cecbab40ef2d70446308aabdef10d9c8e21be1) Signed-off-by: Toni Uhlig --- configure.ac | 4 +--- src/ptunnel.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src/ptunnel.h') diff --git a/configure.ac b/configure.ac index 6585093..4d34483 100644 --- a/configure.ac +++ b/configure.ac @@ -38,9 +38,7 @@ dnl Check for std includes. AC_CHECK_HEADERS([stdarg.h stdio.h unistd.h stdlib.h string.h stdint.h time.h signal.h assert.h],, [AC_MSG_ERROR([Missing essential std headers.])]) if test x"${use_msw}" != x"yes"; then - if test x"${use_android}" != x"yes"; then - AC_CHECK_HEADERS([sys/unistd.h],,[AC_MSG_ERROR([Missing essential non-Windows/Android std headers.])]) - fi + AC_CHECK_HEADERS([sys/unistd.h],,) AC_CHECK_HEADERS([sys/types.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pthread.h errno.h net/ethernet.h syslog.h pwd.h grp.h],, [AC_MSG_ERROR([Missing essential non-Windows std headers.])]) AC_SEARCH_LIBS([pthread_create], [pthread],, diff --git a/src/ptunnel.h b/src/ptunnel.h index 8f77458..7566f92 100644 --- a/src/ptunnel.h +++ b/src/ptunnel.h @@ -45,7 +45,7 @@ #define PING_TUNNEL_H 1 #ifndef WIN32 -#ifndef __ANDROID__ +#ifdef HAVE_SYS_UNISTD_H #include #endif #include -- cgit v1.2.3