summaryrefslogtreecommitdiffstats
path: root/cmds/bootanimation/bootanimation_main.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2015-01-27 07:04:55 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-01-27 07:04:55 +0000
commit3a10a672f05735be46256617b8a61cdb1e589008 (patch)
tree1af6e4124be472ec39bc66563ade6f4efca10b5a /cmds/bootanimation/bootanimation_main.cpp
parent3fd1ebff6c017ba4495070cb34f1ed7652b33cc9 (diff)
parentf70492898b3efa3c5f480f195062fa6f293bc764 (diff)
downloadframeworks_base-3a10a672f05735be46256617b8a61cdb1e589008.zip
frameworks_base-3a10a672f05735be46256617b8a61cdb1e589008.tar.gz
frameworks_base-3a10a672f05735be46256617b8a61cdb1e589008.tar.bz2
am f7049289: am 3812e68e: Merge "kill HAVE_PTHREADS."
* commit 'f70492898b3efa3c5f480f195062fa6f293bc764': kill HAVE_PTHREADS.
Diffstat (limited to 'cmds/bootanimation/bootanimation_main.cpp')
-rw-r--r--cmds/bootanimation/bootanimation_main.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/cmds/bootanimation/bootanimation_main.cpp b/cmds/bootanimation/bootanimation_main.cpp
index 6550d22..48a34e7 100644
--- a/cmds/bootanimation/bootanimation_main.cpp
+++ b/cmds/bootanimation/bootanimation_main.cpp
@@ -16,20 +16,14 @@
#define LOG_TAG "BootAnimation"
-#include <cutils/properties.h>
-
#include <binder/IPCThreadState.h>
#include <binder/ProcessState.h>
#include <binder/IServiceManager.h>
-
+#include <cutils/properties.h>
+#include <sys/resource.h>
#include <utils/Log.h>
#include <utils/threads.h>
-#if defined(HAVE_PTHREADS)
-# include <pthread.h>
-# include <sys/resource.h>
-#endif
-
#include "BootAnimation.h"
using namespace android;
@@ -38,9 +32,7 @@ using namespace android;
int main()
{
-#if defined(HAVE_PTHREADS)
setpriority(PRIO_PROCESS, 0, ANDROID_PRIORITY_DISPLAY);
-#endif
char value[PROPERTY_VALUE_MAX];
property_get("debug.sf.nobootanimation", value, "0");