summaryrefslogtreecommitdiffstats
path: root/libutils
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-12-15 12:52:53 -0800
committerElliott Hughes <enh@google.com>2014-12-15 12:52:53 -0800
commit292ccd3c181d7e005561c4a009b1f6b411e56179 (patch)
treeac95776941eb8b36ef5217c8567d8b422825e5e5 /libutils
parentfae953ebccfabfa500b3ebca93202063c8e3501d (diff)
downloadsystem_core-292ccd3c181d7e005561c4a009b1f6b411e56179.zip
system_core-292ccd3c181d7e005561c4a009b1f6b411e56179.tar.gz
system_core-292ccd3c181d7e005561c4a009b1f6b411e56179.tar.bz2
Fix references to HAVE_PRCTL.
Change-Id: I8343b398f2ce0d743487fdd086e67763c7dd67f1
Diffstat (limited to 'libutils')
-rw-r--r--libutils/Threads.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libutils/Threads.cpp b/libutils/Threads.cpp
index 9bcd063..b2c6903 100644
--- a/libutils/Threads.cpp
+++ b/libutils/Threads.cpp
@@ -35,7 +35,7 @@
# define HAVE_CREATETHREAD // Cygwin, vs. HAVE__BEGINTHREADEX for MinGW
#endif
-#if defined(HAVE_PRCTL)
+#if defined(__linux__)
#include <sys/prctl.h>
#endif
@@ -100,7 +100,7 @@ struct thread_data_t {
};
void androidSetThreadName(const char* name) {
-#if defined(HAVE_PRCTL)
+#if defined(__linux__)
// Mac OS doesn't have this, and we build libutil for the host too
int hasAt = 0;
int hasDot = 0;