From 67c4ade809dc8859dbe9f3511b8968d153ac6b6f Mon Sep 17 00:00:00 2001 From: Stepan Kasal Date: Tue, 15 May 2007 20:46:13 +0200 Subject: [PATCH] swapon: simplify an #if Replace two immerced #ifdef's by an #if with a compound conditional. Signed-off-by: Stepan Kasal --- mount/swapon.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mount/swapon.c b/mount/swapon.c index b6bcd750..7337e32c 100644 --- a/mount/swapon.c +++ b/mount/swapon.c @@ -75,11 +75,7 @@ swapoff_usage(FILE *fp, int n) { #define SWAPON_NEEDS_TWO_ARGS #endif -#ifdef SWAPON_NEEDS_TWO_ARGS -#ifdef SWAPON_HAS_TWO_ARGS -/* libc is OK */ -#include -#else +#if defined(SWAPON_NEEDS_TWO_ARGS) && !defined(SWAPON_HAS_TWO_ARGS) /* We want a swapon with two args, but have an old libc. Build the kernel call by hand. */ #include @@ -87,7 +83,6 @@ static _syscall2(int, swapon, const char *, path, int, flags); static _syscall1(int, swapoff, const char *, path); -#endif #else /* just do as libc says */ #include -- 2.39.5