diff options
author | Elliott Hughes <enh@google.com> | 2014-12-15 12:52:53 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2014-12-15 12:52:53 -0800 |
commit | 292ccd3c181d7e005561c4a009b1f6b411e56179 (patch) | |
tree | ac95776941eb8b36ef5217c8567d8b422825e5e5 /libcutils | |
parent | fae953ebccfabfa500b3ebca93202063c8e3501d (diff) | |
download | system_core-292ccd3c181d7e005561c4a009b1f6b411e56179.zip system_core-292ccd3c181d7e005561c4a009b1f6b411e56179.tar.gz system_core-292ccd3c181d7e005561c4a009b1f6b411e56179.tar.bz2 |
Fix references to HAVE_PRCTL.
Change-Id: I8343b398f2ce0d743487fdd086e67763c7dd67f1
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 9c3dfb8..cc931eb 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 { |