aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-06-19 18:25:49 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-06-19 18:25:49 +0000
commitb02281f8536b1170f9873e4084905e2a5bab8a1f (patch)
treef507bd1431eb6ca52ece3266494e0549cb01d862 /util-linux
parent3cdad2b904444f134720508eacc22820986b7bff (diff)
downloadbusybox-w32-b02281f8536b1170f9873e4084905e2a5bab8a1f.tar.gz
busybox-w32-b02281f8536b1170f9873e4084905e2a5bab8a1f.tar.bz2
busybox-w32-b02281f8536b1170f9873e4084905e2a5bab8a1f.zip
Make swaponoff compile cleanly under both libc5 and libc6.
-Erik git-svn-id: svn://busybox.net/trunk/busybox@665 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/swaponoff.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c
index 83aadd08a..223436c29 100644
--- a/util-linux/swaponoff.c
+++ b/util-linux/swaponoff.c
@@ -25,11 +25,13 @@
25#include "internal.h" 25#include "internal.h"
26#include <stdio.h> 26#include <stdio.h>
27#include <sys/mount.h> 27#include <sys/mount.h>
28#include <sys/swap.h>
29#include <mntent.h> 28#include <mntent.h>
30#include <dirent.h> 29#include <dirent.h>
31#include <fstab.h>
32#include <errno.h> 30#include <errno.h>
31#include <linux/unistd.h>
32
33_syscall2(int, swapon, const char *, path, int, flags);
34_syscall1(int, swapoff, const char *, path);
33 35
34 36
35static int whichApp; 37static int whichApp;