From cf9b16f1d408faa63009667329431f7969303220 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 18 Dec 2017 13:57:20 +0100 Subject: build-sys: don't check for swapon() number of arguments The syscall swapon() with two arguments is supported since Linux 1.3.2 and it's really long time ago... Let's assume that all libc header files have been already fixed. Signed-off-by: Karel Zak --- sys-utils/swapoff.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys-utils/swapoff.c') diff --git a/sys-utils/swapoff.c b/sys-utils/swapoff.c index e5e059d74..0a3807fda 100644 --- a/sys-utils/swapoff.c +++ b/sys-utils/swapoff.c @@ -14,8 +14,7 @@ #include "swapprober.h" #include "swapon-common.h" -#ifndef SWAPON_HAS_TWO_ARGS -/* libc is insane, let's call the kernel */ +#if !defined(HAVE_SWAPOFF) && defined(SYS_swapoff) # include # define swapoff(path) syscall(SYS_swapoff, path) #endif -- cgit v1.2.3-55-g7522