[hackers] [sbase] Check if PRIO_MIN and PRIO_MAX are defined || Roberto E. Vargas Caballero
commit d84070398b3a53cb392cf0ae2c0114abe0de0126
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Tue Dec 15 15:59:27 2015 +0100
Commit: sin <sin_AT_2f30.org>
CommitDate: Tue Dec 15 17:05:21 2015 +0000
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.
diff --git a/nice.c b/nice.c
index 3b9b9fb..d036e26 100644
--- a/nice.c
+++ b/nice.c
_AT_@ -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..74171b6 100644
--- a/renice.c
+++ b/renice.c
_AT_@ -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)
{
Received on Tue Dec 15 2015 - 18:05:29 CET
This archive was generated by hypermail 2.3.0
: Tue Dec 15 2015 - 18:12:21 CET