diff options
Diffstat (limited to 'libbb/missing_syscalls.c')
-rw-r--r-- | libbb/missing_syscalls.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/missing_syscalls.c b/libbb/missing_syscalls.c index e3c1e924b..093412811 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) | |||
40 | return syscall(__NR_pivot_root, new_root, put_old); | 40 | return syscall(__NR_pivot_root, new_root, put_old); |
41 | } | 41 | } |
42 | 42 | ||
43 | # if __ANDROID_API__ < 21 | ||
43 | int tcdrain(int fd) | 44 | int tcdrain(int fd) |
44 | { | 45 | { |
45 | return ioctl(fd, TCSBRK, 1); | 46 | return ioctl(fd, TCSBRK, 1); |
46 | } | 47 | } |
48 | # endif | ||
47 | #endif | 49 | #endif |