From 474d26cea8ad31e77722f81ba801b2c29783e947 Mon Sep 17 00:00:00 2001 From: Hisham Date: Sun, 14 Feb 2016 19:57:29 -0200 Subject: Portable affinity using hwloc --- Action.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Action.c') diff --git a/Action.c b/Action.c index 4ef06f48..50dfde9e 100644 --- a/Action.c +++ b/Action.c @@ -271,7 +271,7 @@ static Htop_Reaction actionQuit() { static Htop_Reaction actionSetAffinity(State* st) { if (st->pl->cpuCount == 1) return HTOP_OK; -#if (HAVE_LIBHWLOC || HAVE_NATIVE_AFFINITY) +#if (HAVE_LIBHWLOC || HAVE_LINUX_AFFINITY) Panel* panel = st->panel; Process* p = (Process*) Panel_getSelected(panel); @@ -405,7 +405,7 @@ static struct { const char* key; const char* info; } helpRight[] = { { .key = " F9 k: ", .info = "kill process/tagged processes" }, { .key = " F7 ]: ", .info = "higher priority (root only)" }, { .key = " F8 [: ", .info = "lower priority (+ nice)" }, -#if (HAVE_LIBHWLOC || HAVE_NATIVE_AFFINITY) +#if (HAVE_LIBHWLOC || HAVE_LINUX_AFFINITY) { .key = " a: ", .info = "set CPU affinity" }, #endif { .key = " e: ", .info = "show process environment" }, -- cgit v1.2.3