diff options
author | Rob Landley <rob@landley.net> | 2019-02-05 08:38:02 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-02-05 08:38:02 -0600 |
commit | 54f0fc8a266bfb88923ecb00bed268ac899459c1 (patch) | |
tree | 3b6cde065bdc058a0292f6f85ad800e15745d721 | |
parent | 3e3c50c3fd1682db7ad8269d588637e2251948a3 (diff) | |
download | toybox-54f0fc8a266bfb88923ecb00bed268ac899459c1.tar.gz |
The android NDK does not appear to have adjtime(). (It has the syscall, and
it has clock_settime(), but not the libc adjtime() function...)
*shrug* Stub it out in portability.h.
-rw-r--r-- | lib/portability.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/portability.h b/lib/portability.h index a2a1cd79..6e923611 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -286,6 +286,7 @@ static inline char *get_sched_policy_name(int policy) {return "unknown";} // stub it out for now. #ifdef __ANDROID_NDK__ #define __android_log_write(a, b, c) (0) +#define adjtime(x, y) (0) #endif #ifndef SYSLOG_NAMES |