forked from enlightenment/efl
Fix the build for the FB engine on non-x86 architectures.
SVN revision: 27430
This commit is contained in:
parent
73af9d0e82
commit
b848372508
|
@ -530,7 +530,7 @@ fb_postinit(FB_Mode *mode)
|
||||||
fb_cleanup();
|
fb_cleanup();
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
mode->mem_offset = (unsigned)(fb_fix.smem_start) & (~PAGE_MASK);
|
mode->mem_offset = (unsigned)(fb_fix.smem_start) & (getpagesize()-1);
|
||||||
mode->mem = (unsigned char *)mmap(NULL, fb_fix.smem_len + mode->mem_offset,
|
mode->mem = (unsigned char *)mmap(NULL, fb_fix.smem_len + mode->mem_offset,
|
||||||
PROT_WRITE | PROT_READ, MAP_SHARED, fb, 0);
|
PROT_WRITE | PROT_READ, MAP_SHARED, fb, 0);
|
||||||
if ((int)mode->mem == -1)
|
if ((int)mode->mem == -1)
|
||||||
|
|
Loading…
Reference in New Issue