From 919bb66f73c679cf81efc6d2433ad75197891ba6 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 24 Jul 2015 20:28:31 -0700 Subject: [PATCH] Fix libcutils build. Change-Id: I4df2065f60f5363877809161298c1f9718252934 (cherry picked from commit 8a8953bb3dcad58c560e4c6247b7897a2a6122d1) --- libcutils/sched_policy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libcutils/sched_policy.c b/libcutils/sched_policy.c index 83222f481..ab0331deb 100644 --- a/libcutils/sched_policy.c +++ b/libcutils/sched_policy.c @@ -60,9 +60,11 @@ static int __sys_supports_schedgroups = -1; static int bg_cgroup_fd = -1; static int fg_cgroup_fd = -1; +#ifdef USE_CPUSETS // File descriptors open to /dev/cpuset/../tasks, setup by initialize, or -1 on error static int bg_cpuset_fd = -1; static int fg_cpuset_fd = -1; +#endif /* Add tid to the scheduling group defined by the policy */ static int add_tid_to_cgroup(int tid, int fd)