33 lines
826 B
Diff
33 lines
826 B
Diff
--- libbb/missing_syscalls.c 2019-06-10 12:50:53.000000000 +0200
|
|
+++ libbb/missing_syscalls.c 2021-01-29 20:48:33.413486161 +0100
|
|
@@ -7,14 +7,6 @@
|
|
|
|
#include "libbb.h"
|
|
|
|
-#if defined(ANDROID) || defined(__ANDROID__)
|
|
-/*# include <linux/timex.h> - for struct timex, but may collide with <time.h> */
|
|
-# include <sys/syscall.h>
|
|
-pid_t getsid(pid_t pid)
|
|
-{
|
|
- return syscall(__NR_getsid, pid);
|
|
-}
|
|
-
|
|
int stime(const time_t *t)
|
|
{
|
|
struct timeval tv;
|
|
@@ -23,6 +15,14 @@
|
|
return settimeofday(&tv, NULL);
|
|
}
|
|
|
|
+#if defined(ANDROID) || defined(__ANDROID__)
|
|
+/*# include <linux/timex.h> - for struct timex, but may collide with <time.h> */
|
|
+# include <sys/syscall.h>
|
|
+pid_t getsid(pid_t pid)
|
|
+{
|
|
+ return syscall(__NR_getsid, pid);
|
|
+}
|
|
+
|
|
int sethostname(const char *name, size_t len)
|
|
{
|
|
return syscall(__NR_sethostname, name, len);
|