summaryrefslogtreecommitdiffstats
path: root/mount
diff options
context:
space:
mode:
authorFabian Groffen2011-01-25 22:44:52 +0100
committerKarel Zak2011-02-14 17:45:24 +0100
commiteb76ca98b0733754d7e9a40f754e89b50af2bf06 (patch)
treef2becaf31f77a664256273e6ec6772904422ac53 /mount
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 'mount')
-rw-r--r--mount/swapon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mount/swapon.c b/mount/swapon.c
index 5c9c3be43..49771f5d7 100644
--- a/mount/swapon.c
+++ b/mount/swapon.c
@@ -13,7 +13,6 @@
#include <sys/wait.h>
#include <fcntl.h>
#include <stdint.h>
-#include <err.h>
#include <ctype.h>
#include "bitops.h"
@@ -25,6 +24,7 @@
#include "swapheader.h"
#include "mangle.h"
#include "canonicalize.h"
+#include "c.h"
#define PATH_MKSWAP "/sbin/mkswap"