diff options
Diffstat (limited to 'sys-utils/swapon.c')
-rw-r--r-- | sys-utils/swapon.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 <sys/syscall.h> # define swapon(path, flags) syscall(SYS_swapon, path, flags) #endif |