Tue, 31 Jul 2012 09:41:21 +0200
Correct machine/m_linux.c: fatal error: asm/page.h: No such file.
top/top.spec | file | annotate | diff | comparison | revisions |
1.1 --- a/top/top.spec Tue Jul 31 09:38:55 2012 +0200 1.2 +++ b/top/top.spec Tue Jul 31 09:41:21 2012 +0200 1.3 @@ -36,7 +36,7 @@ 1.4 Group: Monitoring 1.5 License: Freely Redistributable 1.6 Version: %{V_opkg} 1.7 -Release: 20090522 1.8 +Release: 20120800 1.9 1.10 # list of sources 1.11 Source0: http://www.unixtop.org/dist/top-%{V_dist}.tar.gz 1.12 @@ -62,6 +62,22 @@ 1.13 1.14 %prep 1.15 %setup -q -n top-%{V_dist} 1.16 + mkdir asm 1.17 + cat > asm/page.h <<EOF 1.18 +#ifndef _I386_PAGE_H 1.19 +#define _I386_PAGE_H 1.20 + 1.21 +/* PAGE_SHIFT determines the page size */ 1.22 +#define PAGE_SHIFT 12 1.23 +#define PAGE_SIZE (1UL << PAGE_SHIFT) 1.24 +#define PAGE_MASK (~(PAGE_SIZE-1)) 1.25 + 1.26 +#define LARGE_PAGE_MASK (~(LARGE_PAGE_SIZE-1)) 1.27 +#define LARGE_PAGE_SIZE (1UL << PMD_SHIFT) 1.28 + 1.29 + 1.30 +#endif /* _I386_PAGE_H */ 1.31 +EOF 1.32 1.33 %build 1.34 # configure program