diff options
author | Daniel Lange <DLange@git.local> | 2020-12-07 10:26:01 +0100 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2020-12-07 10:26:01 +0100 |
commit | 65357c8c46154de4e4eca14075bfe5523bb5fc14 (patch) | |
tree | 8f430ee5a0d5de377c4e7c94e47842a27c70d7e8 /Affinity.h | |
parent | f80394a20254938142011855f2954b3f63fe5909 (diff) | |
download | debian_htop-65357c8c46154de4e4eca14075bfe5523bb5fc14.tar.gz debian_htop-65357c8c46154de4e4eca14075bfe5523bb5fc14.tar.bz2 debian_htop-65357c8c46154de4e4eca14075bfe5523bb5fc14.zip |
New upstream version 3.0.3upstream/3.0.3
Diffstat (limited to 'Affinity.h')
-rw-r--r-- | Affinity.h | 20 |
1 files changed, 17 insertions, 3 deletions
@@ -4,13 +4,27 @@ htop - Affinity.h (C) 2004-2011 Hisham H. Muhammad (C) 2020 Red Hat, Inc. All Rights Reserved. -Released under the GNU GPL, see the COPYING file +Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ -#include "Process.h" +#include "config.h" // IWYU pragma: keep + #include "ProcessList.h" +#if defined(HAVE_LIBHWLOC) || defined(HAVE_LINUX_AFFINITY) +#include <stdbool.h> + +#include "Object.h" +#include "Process.h" +#endif + + +#if defined(HAVE_LIBHWLOC) && defined(HAVE_LINUX_AFFINITY) +#error hwloc and linux affinity are mutual exclusive. +#endif + + typedef struct Affinity_ { ProcessList* pl; int size; @@ -30,6 +44,6 @@ Affinity* Affinity_get(Process* proc, ProcessList* pl); bool Affinity_set(Process* proc, Arg arg); -#endif +#endif /* HAVE_LIBHWLOC || HAVE_LINUX_AFFINITY */ #endif |