more tweak for bionic

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2011-07-08 08:49:40 +02:00
parent acff3733ba
commit 14bd16ac56
6 changed files with 65 additions and 4 deletions

View File

@@ -25,6 +25,9 @@
#include "libbb.h"
#include <mntent.h>
#include <sys/swap.h>
#ifndef __BIONIC__
# include <sys/swap.h>
#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;