summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-09-18 23:10:25 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-09-18 23:10:25 +0900
commite3a41a51dab04d346db6d64bd202aa72cdff80c5 (patch)
tree2120d1f8a32033e3f28d03c2472781a9bb7f4d0a /src/Makefile.am
parentfa09dc9115c4d34da6c5797287ee2ba61d6f162e (diff)
Fix link error with Android NDK r9
Since Android ndk r9, __set_errno is deprecated. It is now defined as inline function in errno.h. The syscall assembly calls __set_errno, but since libc.so does not export it, the link fails. To workaround this, replace all occurrences of __set_errno with a2_set_errno and define it as normal C function.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index b9f8edc4..01532752 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -253,6 +253,10 @@ SRCS = option_processing.cc\
FtpTunnelRequestConnectChain.h\
Lock.h
+if ANDROID
+SRCS += android/android.c
+endif # ANDROID
+
# Android NDK R8e does not provide ftruncate64. Use assembly code from
# android source code and link it.
if ANDROID_ARM