summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-09-07 12:32:19 -0700
committerAlex Ray <aray@google.com>2013-07-30 13:56:54 -0700
commit193c18ca8a61116b74496e9bd0954ee864337dc3 (patch)
treefa6aafe17d0b71a5b790fbe8ebe73495fdd6479b /libs
parent16d217efbbeb1fde5e3925ad4340856730ad0c98 (diff)
downloadsystem_core-193c18ca8a61116b74496e9bd0954ee864337dc3.zip
system_core-193c18ca8a61116b74496e9bd0954ee864337dc3.tar.gz
system_core-193c18ca8a61116b74496e9bd0954ee864337dc3.tar.bz2
Hopefully fix the build.
Change-Id: Id8cd92c0895c9939e1386ef488bd1309a3be3568
Diffstat (limited to 'libs')
-rw-r--r--libs/utils/Threads.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/utils/Threads.cpp b/libs/utils/Threads.cpp
index c8de1f5..e5ece8e 100644
--- a/libs/utils/Threads.cpp
+++ b/libs/utils/Threads.cpp
@@ -281,6 +281,7 @@ pid_t androidGetTid()
#endif
}
+#if defined(HAVE_PTHREADS)
static pthread_once_t gDoSchedulingGroupOnce = PTHREAD_ONCE_INIT;
static bool gDoSchedulingGroup = true;
@@ -294,6 +295,7 @@ static void checkDoSchedulingGroup(void) {
}
}
}
+#endif
int androidSetThreadSchedulingGroup(pid_t tid, int grp)
{