diff options
author | Elliott Hughes | 2014-12-15 14:52:53 -0600 |
---|---|---|
committer | Elliott Hughes | 2014-12-15 14:52:53 -0600 |
commit | 292ccd3c181d7e005561c4a009b1f6b411e56179 (patch) | |
tree | ac95776941eb8b36ef5217c8567d8b422825e5e5 /libutils/Threads.cpp | |
parent | fae953ebccfabfa500b3ebca93202063c8e3501d (diff) | |
download | platform-system-core-292ccd3c181d7e005561c4a009b1f6b411e56179.tar.gz platform-system-core-292ccd3c181d7e005561c4a009b1f6b411e56179.tar.xz platform-system-core-292ccd3c181d7e005561c4a009b1f6b411e56179.zip |
Fix references to HAVE_PRCTL.
Change-Id: I8343b398f2ce0d743487fdd086e67763c7dd67f1
Diffstat (limited to 'libutils/Threads.cpp')
-rw-r--r-- | libutils/Threads.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libutils/Threads.cpp b/libutils/Threads.cpp index 9bcd06330..b2c690397 100644 --- a/libutils/Threads.cpp +++ b/libutils/Threads.cpp | |||
@@ -35,7 +35,7 @@ | |||
35 | # define HAVE_CREATETHREAD // Cygwin, vs. HAVE__BEGINTHREADEX for MinGW | 35 | # define HAVE_CREATETHREAD // Cygwin, vs. HAVE__BEGINTHREADEX for MinGW |
36 | #endif | 36 | #endif |
37 | 37 | ||
38 | #if defined(HAVE_PRCTL) | 38 | #if defined(__linux__) |
39 | #include <sys/prctl.h> | 39 | #include <sys/prctl.h> |
40 | #endif | 40 | #endif |
41 | 41 | ||
@@ -100,7 +100,7 @@ struct thread_data_t { | |||
100 | }; | 100 | }; |
101 | 101 | ||
102 | void androidSetThreadName(const char* name) { | 102 | void androidSetThreadName(const char* name) { |
103 | #if defined(HAVE_PRCTL) | 103 | #if defined(__linux__) |
104 | // Mac OS doesn't have this, and we build libutil for the host too | 104 | // Mac OS doesn't have this, and we build libutil for the host too |
105 | int hasAt = 0; | 105 | int hasAt = 0; |
106 | int hasDot = 0; | 106 | int hasDot = 0; |