aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/portability.c6
-rw-r--r--lib/portability.h5
2 files changed, 2 insertions, 9 deletions
diff --git a/lib/portability.c b/lib/portability.c
index f4354a86..78e500b1 100644
--- a/lib/portability.c
+++ b/lib/portability.c
@@ -92,9 +92,3 @@ 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
diff --git a/lib/portability.h b/lib/portability.h
index 87258fa9..afe02c1c 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -273,7 +273,6 @@ pid_t xfork(void);
#ifdef __ANDROID__
#include <cutils/sched_policy.h>
#else
-typedef int SchedPolicy;
-int get_sched_policy(int tid, SchedPolicy *policy);
-const char *get_sched_policy_name(SchedPolicy policy);
+static inline int get_sched_policy(int tid, void *policy) {return 0;}
+static inline char *get_sched_policy_name(int policy) {return "unknown";}
#endif