summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorChris Renshaw2015-12-17 16:42:01 +0100
committerDenys Vlasenko2015-12-17 16:42:41 +0100
commit6df961257d584714c5690b1f4197c677e4f832ec (patch)
treeff33f9a5fb3f68338dd4e737cbd4b8bd4546aae9 /libbb
parente0942acb9e186cbfc16afe704e10a8af9cd1cc58 (diff)
downloadbusybox-6df961257d584714c5690b1f4197c677e4f832ec.zip
busybox-6df961257d584714c5690b1f4197c677e4f832ec.tar.gz
Resolve linker issues with Android API 21 (dprintf, tcdrain)
Signed-off-by: Chris Renshaw <osm0sis@outlook.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r--libbb/missing_syscalls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/missing_syscalls.c b/libbb/missing_syscalls.c
index e3c1e92..0934128 100644
--- a/libbb/missing_syscalls.c
+++ b/libbb/missing_syscalls.c
@@ -40,8 +40,10 @@ int pivot_root(const char *new_root, const char *put_old)
return syscall(__NR_pivot_root, new_root, put_old);
}
+# if __ANDROID_API__ < 21
int tcdrain(int fd)
{
return ioctl(fd, TCSBRK, 1);
}
+# endif
#endif