On Tue, Jun 12, 2007 at 11:25:24PM -0400, Mike Frysinger wrote:
> not sure why asm/page.h and sys/swap.h header checks were added to
> configure.ac and then swapon.c ignores the results of those tests, but this
Commit: b34258064dd36e6b22b0ea8bf3ad4365cc078057
There was mount/swap.configure with page.h and Stepan has moved this test
to configure.ac.
> patch fixes this ... not that i can even guess why asm/page.h is needed in the
> first place since swapon doesnt use any of the PAGE_* defines ...
I think we needn't asm/page.h anymore.
Karel
> Signed-off-by: Mike Frysinger <[EMAIL PROTECTED]>
> ---
> diff --git a/mount/swapon.c b/mount/swapon.c
> index a8e5cc1..54b1178 100644
> --- a/mount/swapon.c
> +++ b/mount/swapon.c
> @@ -22,8 +22,10 @@
> #define _PATH_FSTAB "/etc/fstab"
> #define PROC_SWAPS "/proc/swaps"
>
> -#ifdef SWAPON_HAS_TWO_ARGS
> +#ifdef HAVE_ASM_PAGE_H
> # include <asm/page.h>
> +#endif
> +#ifdef HAVE_SYS_SWAP_H
> # include <sys/swap.h>
> #endif
>
> -
> To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
> the body of a message to [EMAIL PROTECTED]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Karel Zak <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html