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.
This commit is contained in:
Roberto E. Vargas Caballero 2015-12-15 15:59:27 +01:00 committed by sin
parent 7949adf9c4
commit d84070398b
2 changed files with 16 additions and 0 deletions

8
nice.c
View File

@ -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)
{

View File

@ -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)
{