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.
---
nice.c | 8 ++++++++
renice.c | 9 +++++++++
2 files changed, 17 insertions(+)
diff --git a/nice.c b/nice.c
index 3b9b9fb..d036e26 100644
--- 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
index 38853b8..5159558 100644
--- a/renice.c
+++ b/renice.c
@@ -7,6 +7,15 @@
#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)
{
--
2.1.4