From 14bd16ac56e81e4912341cb731dc54af0dbe9e6c Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 8 Jul 2011 08:49:40 +0200 Subject: more tweak for bionic Signed-off-by: Denys Vlasenko --- util-linux/swaponoff.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'util-linux/swaponoff.c') diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c index dbefa4cf2..43ddb4031 100644 --- a/util-linux/swaponoff.c +++ b/util-linux/swaponoff.c @@ -25,6 +25,9 @@ #include "libbb.h" #include #include +#ifndef __BIONIC__ +# include +#endif #if ENABLE_FEATURE_MOUNT_LABEL # include "volume_id.h" @@ -32,6 +35,10 @@ # define resolve_mount_spec(fsname) ((void)0) #endif +#ifndef MNTTYPE_SWAP +# define MNTTYPE_SWAP "swap" +#endif + #if ENABLE_FEATURE_SWAPON_PRI struct globals { int flags; -- cgit v1.2.3