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 @@ | |||
25 | #include "libbb.h" | 25 | #include "libbb.h" |
26 | #include <mntent.h> | 26 | #include <mntent.h> |
27 | #include <sys/swap.h> | 27 | #include <sys/swap.h> |
28 | #ifndef __BIONIC__ | ||
29 | # include <sys/swap.h> | ||
30 | #endif | ||
28 | 31 | ||
29 | #if ENABLE_FEATURE_MOUNT_LABEL | 32 | #if ENABLE_FEATURE_MOUNT_LABEL |
30 | # include "volume_id.h" | 33 | # include "volume_id.h" |
@@ -32,6 +35,10 @@ | |||
32 | # define resolve_mount_spec(fsname) ((void)0) | 35 | # define resolve_mount_spec(fsname) ((void)0) |
33 | #endif | 36 | #endif |
34 | 37 | ||
38 | #ifndef MNTTYPE_SWAP | ||
39 | # define MNTTYPE_SWAP "swap" | ||
40 | #endif | ||
41 | |||
35 | #if ENABLE_FEATURE_SWAPON_PRI | 42 | #if ENABLE_FEATURE_SWAPON_PRI |
36 | struct globals { | 43 | struct globals { |
37 | int flags; | 44 | int flags; |