summaryrefslogtreecommitdiffstats
path: root/libcutils/process_name.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcutils/process_name.c')
-rw-r--r--libcutils/process_name.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcutils/process_name.c b/libcutils/process_name.c
index cc931ebaf..5d28b6ff2 100644
--- a/libcutils/process_name.c
+++ b/libcutils/process_name.c
@@ -25,19 +25,19 @@
#include <unistd.h>
#include <cutils/process_name.h>
-#ifdef HAVE_ANDROID_OS
+#if defined(__ANDROID__)
#include <cutils/properties.h>
#endif
#define PROCESS_NAME_DEVICE "/sys/qemu_trace/process_name"
static const char* process_name = "unknown";
-#ifdef HAVE_ANDROID_OS
+#if defined(__ANDROID__)
static int running_in_emulator = -1;
#endif
void set_process_name(const char* new_name) {
-#ifdef HAVE_ANDROID_OS
+#if defined(__ANDROID__)
char propBuf[PROPERTY_VALUE_MAX];
#endif
@@ -59,7 +59,7 @@ void set_process_name(const char* new_name) {
}
#endif
-#ifdef HAVE_ANDROID_OS
+#if defined(__ANDROID__)
// If we know we are not running in the emulator, then return.
if (running_in_emulator == 0) {
return;