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/swapon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys-utils/swapon.c') diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c index 6bf67a91f..13437f771 100644 --- a/sys-utils/swapon.c +++ b/sys-utils/swapon.c @@ -59,8 +59,7 @@ # define SWAP_FLAG_PRIO_SHIFT 0 #endif -#ifndef SWAPON_HAS_TWO_ARGS -/* libc is insane, let's call the kernel */ +#if !defined(HAVE_SWAPON) && defined(SYS_swapon) # include # define swapon(path, flags) syscall(SYS_swapon, path, flags) #endif -- cgit v1.2.3-55-g7522