sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit d84070398b3a53cb392cf0ae2c0114abe0de0126
parent 7949adf9c471f469e15cd27765ff56e123b5f539
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue Dec 15 15:59:27 +0100

Check if PRIO_MIN and PRIO_MAX are defined

The majority of the systems define PRIO_MAX and PRIO_MIN,
but there is an obscure system, whose name I am not going
to tell, where they were not defined.

Diffstat:
nice.c | 8++++++++
renice.c | 8++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/nice.c b/nice.c @@ -7,6 +7,14 @@ #include "util.h" +#ifndef PRIO_MIN +#define PRIO_MIN -NZERO +#endif + +#ifndef PRIO_MAX +#define PRIO_MAX (NZERO-1) +#endif + static void usage(void) { diff --git a/renice.c b/renice.c @@ -7,6 +7,14 @@ #include "util.h" +#ifndef PRIO_MIN +#define PRIO_MIN -NZERO +#endif + +#ifndef PRIO_MAX +#define PRIO_MAX (NZERO-1) +#endif + static int renice(int which, int who, long adj) {