summaryrefslogtreecommitdiff
path: root/lib/cpuset.c
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2011-01-25 22:44:52 +0100
committerKarel Zak <kzak@redhat.com>2011-02-14 17:45:24 +0100
commiteb76ca98b0733754d7e9a40f754e89b50af2bf06 (patch)
treef2becaf31f77a664256273e6ec6772904422ac53 /lib/cpuset.c
parent4a01477b12bc6c7ced2306e2700021672f43a4a0 (diff)
downloadutil-linux-eb76ca98b0733754d7e9a40f754e89b50af2bf06.tar.gz
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 'lib/cpuset.c')
-rw-r--r--lib/cpuset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cpuset.c b/lib/cpuset.c
index 0c483fa5..8cd706ce 100644
--- a/lib/cpuset.c
+++ b/lib/cpuset.c
@@ -20,6 +20,7 @@
#include <sys/syscall.h>
#include "cpuset.h"
+#include "c.h"
static inline int val_to_char(int v)
{
@@ -303,7 +304,6 @@ int cpulist_parse(const char *str, cpu_set_t *set, size_t setsize)
#ifdef TEST_PROGRAM
-#include <err.h>
#include <getopt.h>
int main(int argc, char *argv[])