kill HAVE_SCHED_SETSCHEDULER
Bug: 18300670
Change-Id: I3033c3542e83963e72d49a639db76501d12ad581
diff --git a/core/jni/android_util_Process.cpp b/core/jni/android_util_Process.cpp
index 6506190..2b0960f 100644
--- a/core/jni/android_util_Process.cpp
+++ b/core/jni/android_util_Process.cpp
@@ -287,7 +287,8 @@
void android_os_Process_setThreadScheduler(JNIEnv* env, jclass clazz,
jint tid, jint policy, jint pri)
{
-#ifdef HAVE_SCHED_SETSCHEDULER
+// linux has sched_setscheduler(), others don't.
+#if defined(__linux__)
struct sched_param param;
param.sched_priority = pri;
int rc = sched_setscheduler(tid, policy, ¶m);