summaryrefslogtreecommitdiffstats
path: root/schedutils
diff options
context:
space:
mode:
authorFabian Groffen2011-01-25 22:44:52 +0100
committerKarel Zak2011-02-14 17:45:24 +0100
commiteb76ca98b0733754d7e9a40f754e89b50af2bf06 (patch)
treef2becaf31f77a664256273e6ec6772904422ac53 /schedutils
parentsfdisk: rename warn to my_warn (diff)
downloadkernel-qcow2-util-linux-eb76ca98b0733754d7e9a40f754e89b50af2bf06.tar.gz
kernel-qcow2-util-linux-eb76ca98b0733754d7e9a40f754e89b50af2bf06.tar.xz
kernel-qcow2-util-linux-eb76ca98b0733754d7e9a40f754e89b50af2bf06.zip
build-sys: provide alternatives for err, errx, warn and warnx
Solaris lacks err, errx, warn and warnx. This also means the err.h header doesn't exist. Removed err.h include from all files, and included err.h from c.h instead if it exists, otherwise alternatives are provided. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'schedutils')
-rw-r--r--schedutils/chrt.c1
-rw-r--r--schedutils/ionice.c3
-rw-r--r--schedutils/taskset.c3
3 files changed, 2 insertions, 5 deletions
diff --git a/schedutils/chrt.c b/schedutils/chrt.c
index bd7070cca..489f29988 100644
--- a/schedutils/chrt.c
+++ b/schedutils/chrt.c
@@ -27,7 +27,6 @@
#include <unistd.h>
#include <getopt.h>
#include <errno.h>
-#include <err.h>
#include "c.h"
#include "nls.h"
diff --git a/schedutils/ionice.c b/schedutils/ionice.c
index ecfb4fd05..dc18add60 100644
--- a/schedutils/ionice.c
+++ b/schedutils/ionice.c
@@ -12,11 +12,10 @@
#include <getopt.h>
#include <unistd.h>
#include <sys/syscall.h>
-#include <err.h>
#include "nls.h"
-
#include "strutils.h"
+#include "c.h"
static int tolerant;
diff --git a/schedutils/taskset.c b/schedutils/taskset.c
index fa16647da..39b22452e 100644
--- a/schedutils/taskset.c
+++ b/schedutils/taskset.c
@@ -24,12 +24,11 @@
#include <unistd.h>
#include <getopt.h>
#include <errno.h>
-#include <err.h>
#include "cpuset.h"
#include "nls.h"
-
#include "strutils.h"
+#include "c.h"
static void __attribute__((__noreturn__)) usage(FILE *out)
{