From 5e29c6ffce509bc492a2acc4dd4102ac96d0f515 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 19 Jun 2000 18:25:49 +0000 Subject: [PATCH] Make swaponoff compile cleanly under both libc5 and libc6. -Erik --- swaponoff.c | 6 ++++-- util-linux/swaponoff.c | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/swaponoff.c b/swaponoff.c index 83aadd08a..223436c29 100644 --- a/swaponoff.c +++ b/swaponoff.c @@ -25,11 +25,13 @@ #include "internal.h" #include #include -#include #include #include -#include #include +#include + +_syscall2(int, swapon, const char *, path, int, flags); +_syscall1(int, swapoff, const char *, path); static int whichApp; 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 @@ #include "internal.h" #include #include -#include #include #include -#include #include +#include + +_syscall2(int, swapon, const char *, path, int, flags); +_syscall1(int, swapoff, const char *, path); static int whichApp; -- 2.25.1