aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@openmailbox.org>2016-01-05 20:56:08 -0300
committerMatias Linares <matiaslina@openmailbox.org>2016-01-05 20:56:08 -0300
commitef135e7a0b99f25b8e36dbe112c950b97d2057d2 (patch)
tree01a11f6760086237df6adddc133ecd54dddb2124
parent2a41abbed0dfb70447a9c83b17b6d98fcb3c65c6 (diff)
downloadprofile-ef135e7a0b99f25b8e36dbe112c950b97d2057d2.tar.gz
Change macro _ALLOW_UNMANTAINED to _ENABLE_UNMANTAINED
-rw-r--r--Makefile2
-rw-r--r--profile.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f1a44d8..08aa2ec 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
CC=clang
# Enable _ALLOW_UNMANTAINED for non Linux systems
-CFLAGS=-Wall -Wextra -O0 -g # -D_ALLOW_UNMANTAINED
+CFLAGS=-Wall -Wextra -O0 -g # -D_ENABLE_UNMANTAINED
EXE=profile
SOURCES=profile.c
diff --git a/profile.c b/profile.c
index c447f08..7bccfc4 100644
--- a/profile.c
+++ b/profile.c
@@ -141,7 +141,7 @@ int main(int argc, char **argv)
printf("voluntary context switches: %ld\n", usage.ru_nvcsw);
printf("involuntary context switches: %ld\n", usage.ru_nivcsw);
-#ifdef _ALLOW_UNMANTAINED
+#ifdef _ENABLE_UNMANTAINED
printf("integral shared memory size: %ld\n", usage.ru_ixrss);
printf("integral unshared data size: %ld\n", usage.ru_idrss);
printf("integral unshared stack size: %ld\n", usage.ru_isrss);