aboutsummaryrefslogtreecommitdiff
path: root/util-linux/swaponoff.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-06-15 15:49:36 +0000
committerRob Landley <rob@landley.net>2006-06-15 15:49:36 +0000
commit22d26fc6ae2af584482deaf92f25bb6a7261ad78 (patch)
tree3e9e7c2b43314acdd1f4db7e3a89a3c69daf814a /util-linux/swaponoff.c
parentd6e5083d16c940e36312f4a1b52317dcfc32c011 (diff)
downloadbusybox-w32-22d26fc6ae2af584482deaf92f25bb6a7261ad78.tar.gz
busybox-w32-22d26fc6ae2af584482deaf92f25bb6a7261ad78.tar.bz2
busybox-w32-22d26fc6ae2af584482deaf92f25bb6a7261ad78.zip
Patch from Yann Morin to put BLKGETSIZE64 in platform.h had rather a lot of
fallout due to the #include <sys/mount.h>. Removed that #include from various applets and fixed up those that were unhappy when that #include was made because they'd block copied stuff out of it. (Sigh.)
Diffstat (limited to 'util-linux/swaponoff.c')
-rw-r--r--util-linux/swaponoff.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c
index 473325d0c..9bb70a1f5 100644
--- a/util-linux/swaponoff.c
+++ b/util-linux/swaponoff.c
@@ -7,16 +7,13 @@
7 * Licensed under the GPL v2, see the file LICENSE in this tarball. 7 * Licensed under the GPL v2, see the file LICENSE in this tarball.
8 */ 8 */
9 9
10#include <stdio.h> 10#include "busybox.h"
11#include <mntent.h> 11#include <mntent.h>
12#include <dirent.h> 12#include <dirent.h>
13#include <errno.h> 13#include <errno.h>
14#include <string.h> 14#include <string.h>
15#include <stdlib.h>
16#include <sys/mount.h>
17#include <sys/swap.h> 15#include <sys/swap.h>
18 16
19#include "busybox.h"
20 17
21static int swap_enable_disable(const char *device) 18static int swap_enable_disable(const char *device)
22{ 19{