diff options
author | Elliott Hughes <enh@google.com> | 2014-12-15 23:19:51 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-12-15 23:19:51 +0000 |
commit | f8328e774444731c44393c642aee86f9a7935a7c (patch) | |
tree | c6b97ca91da98c52d0b72170cdf83e3e33397ef9 /libcutils | |
parent | 27484f2e740950e5b6260b7c3e086f98f019317b (diff) | |
parent | 0e74cfb677319c0f006dcc81f74fb21956807d2a (diff) | |
download | core-f8328e774444731c44393c642aee86f9a7935a7c.tar.gz core-f8328e774444731c44393c642aee86f9a7935a7c.tar.bz2 core-f8328e774444731c44393c642aee86f9a7935a7c.zip |
am 0e74cfb6: Merge "Fix references to HAVE_PRCTL."
* commit '0e74cfb677319c0f006dcc81f74fb21956807d2a':
Fix references to HAVE_PRCTL.
Diffstat (limited to 'libcutils')
-rw-r--r-- | libcutils/process_name.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcutils/process_name.c b/libcutils/process_name.c index 9c3dfb8d2..cc931ebaf 100644 --- a/libcutils/process_name.c +++ b/libcutils/process_name.c @@ -17,7 +17,7 @@ #include <fcntl.h> #include <stdlib.h> #include <string.h> -#if defined(HAVE_PRCTL) +#if defined(__linux__) #include <sys/prctl.h> #endif #include <sys/stat.h> @@ -51,7 +51,7 @@ void set_process_name(const char* new_name) { strcpy(copy, new_name); process_name = (const char*) copy; -#if defined(HAVE_PRCTL) +#if defined(__linux__) if (len < 16) { prctl(PR_SET_NAME, (unsigned long) new_name, 0, 0, 0); } else { |