Make swaponoff compile cleanly under both libc5 and libc6.

-Erik
This commit is contained in:
Eric Andersen 2000-06-19 18:25:49 +00:00
parent a15cd0be34
commit 5e29c6ffce
2 changed files with 8 additions and 4 deletions

View File

@ -25,11 +25,13 @@
#include "internal.h" #include "internal.h"
#include <stdio.h> #include <stdio.h>
#include <sys/mount.h> #include <sys/mount.h>
#include <sys/swap.h>
#include <mntent.h> #include <mntent.h>
#include <dirent.h> #include <dirent.h>
#include <fstab.h>
#include <errno.h> #include <errno.h>
#include <linux/unistd.h>
_syscall2(int, swapon, const char *, path, int, flags);
_syscall1(int, swapoff, const char *, path);
static int whichApp; static int whichApp;

View File

@ -25,11 +25,13 @@
#include "internal.h" #include "internal.h"
#include <stdio.h> #include <stdio.h>
#include <sys/mount.h> #include <sys/mount.h>
#include <sys/swap.h>
#include <mntent.h> #include <mntent.h>
#include <dirent.h> #include <dirent.h>
#include <fstab.h>
#include <errno.h> #include <errno.h>
#include <linux/unistd.h>
_syscall2(int, swapon, const char *, path, int, flags);
_syscall1(int, swapoff, const char *, path);
static int whichApp; static int whichApp;