summaryrefslogtreecommitdiffstats
path: root/sys-apps/util-linux/files/util-linux-2.12r-HAVE_asm_page_h.patch
blob: 21c04709d809d123d508a5126ea3ff678b4b1bba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
fix building when asm/page.h is not available

http://bugs.gentoo.org/168278

--- disk-utils/fsck.cramfs.c
+++ disk-utils/fsck.cramfs.c
@@ -76,7 +76,9 @@
 
 #define PAD_SIZE 512
 
+#ifdef HAVE_asm_page_h
 #include <asm/page.h>
+#endif
 #ifdef PAGE_SIZE
 #define PAGE_CACHE_SIZE ((int) PAGE_SIZE)
 #elif defined __ia64__