termux-packages/packages/busybox/missing_syscalls.c.patch

17 lines
558 B
Diff
Raw Normal View History

2015-06-13 01:03:31 +02:00
We have patched the ndk header to include getsid().
2018-07-23 01:33:02 +02:00
diff -u -r ../busybox-1.29.1/libbb/missing_syscalls.c ./libbb/missing_syscalls.c
--- ../busybox-1.29.1/libbb/missing_syscalls.c 2018-07-02 11:23:06.000000000 +0000
+++ ./libbb/missing_syscalls.c 2018-07-22 23:12:25.751499056 +0000
@@ -10,10 +10,6 @@
2015-06-13 01:03:31 +02:00
#if defined(ANDROID) || defined(__ANDROID__)
2018-07-23 01:33:02 +02:00
/*# include <linux/timex.h> - for struct timex, but may collide with <time.h> */
# include <sys/syscall.h>
2015-06-13 01:03:31 +02:00
-pid_t getsid(pid_t pid)
-{
- return syscall(__NR_getsid, pid);
-}
2018-07-23 01:33:02 +02:00
2015-06-13 01:03:31 +02:00
int stime(const time_t *t)
{