bionic provides PR_SET_VMA now. am: 9f251509c0
am: ac98c4b714
Change-Id: Ie23e03e32ec06435ef18627922c6e4e028d84c60
diff --git a/src/pages.c b/src/pages.c
index 44f82ee..9b26d61 100644
--- a/src/pages.c
+++ b/src/pages.c
@@ -20,10 +20,6 @@
#if defined(__ANDROID__)
#include <sys/prctl.h>
-
-/* Definitions of prctl arguments to set a vma name in Android kernels. */
-#define ANDROID_PR_SET_VMA 0x53564d41
-#define ANDROID_PR_SET_VMA_ANON_NAME 0
#endif
/******************************************************************************/
@@ -70,7 +66,7 @@
#if defined(__ANDROID__)
if (ret != NULL) {
/* Name this memory as being used by libc */
- prctl(ANDROID_PR_SET_VMA, ANDROID_PR_SET_VMA_ANON_NAME, ret,
+ prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, ret,
size, "libc_malloc");
}
#endif