aboutsummaryrefslogtreecommitdiff
path: root/lib/portability.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/portability.c')
-rw-r--r--lib/portability.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/portability.c b/lib/portability.c
index 78e500b1..f4354a86 100644
--- a/lib/portability.c
+++ b/lib/portability.c
@@ -92,3 +92,9 @@ int clearenv(void)
return 0;
}
#endif
+
+#if !defined(__ANDROID__)
+// No-op implementations of <cutils/sched_policy.h>.
+int get_sched_policy(int tid, SchedPolicy *policy) { return 0; }
+const char *get_sched_policy_name(SchedPolicy policy) { return "unknown"; }
+#endif