aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-02-05 08:38:02 -0600
committerRob Landley <rob@landley.net>2019-02-05 08:38:02 -0600
commit54f0fc8a266bfb88923ecb00bed268ac899459c1 (patch)
tree3b6cde065bdc058a0292f6f85ad800e15745d721
parent3e3c50c3fd1682db7ad8269d588637e2251948a3 (diff)
downloadtoybox-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.h1
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