diff options
Diffstat (limited to 'util-linux/swaponoff.c')
-rw-r--r-- | util-linux/swaponoff.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 <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; |