[patch] fix swapon header creep

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
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 ...

Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
---
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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux