diff options
Diffstat (limited to 'util-linux/swaponoff.c')
-rw-r--r-- | util-linux/swaponoff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c index c29dd3071..43228a6ba 100644 --- a/util-linux/swaponoff.c +++ b/util-linux/swaponoff.c | |||
@@ -28,6 +28,7 @@ | |||
28 | //usage: "\n -a Stop swapping on all swap devices" | 28 | //usage: "\n -a Stop swapping on all swap devices" |
29 | 29 | ||
30 | #include "libbb.h" | 30 | #include "libbb.h" |
31 | #include "common_bufsiz.h" | ||
31 | #include <mntent.h> | 32 | #include <mntent.h> |
32 | #ifndef __BIONIC__ | 33 | #ifndef __BIONIC__ |
33 | # include <sys/swap.h> | 34 | # include <sys/swap.h> |
@@ -62,7 +63,7 @@ | |||
62 | struct globals { | 63 | struct globals { |
63 | int flags; | 64 | int flags; |
64 | } FIX_ALIASING; | 65 | } FIX_ALIASING; |
65 | #define G (*(struct globals*)&bb_common_bufsiz1) | 66 | #define G (*(struct globals*)bb_common_bufsiz1) |
66 | #define g_flags (G.flags) | 67 | #define g_flags (G.flags) |
67 | #define save_g_flags() int save_g_flags = g_flags | 68 | #define save_g_flags() int save_g_flags = g_flags |
68 | #define restore_g_flags() g_flags = save_g_flags | 69 | #define restore_g_flags() g_flags = save_g_flags |