On Wed, Aug 23, 2006 at 08:39:37PM +0200, Aurelien Jarno wrote:
> > With the attached patch 'xawtv' can be compiled on powerpc.

> > Regards
> > Andreas Jochens
> > 
> > diff -urN ../tmp-orig/xawtv-3.95/console/fbtools.c ./console/fbtools.c
> > --- ../tmp-orig/xawtv-3.95/console/fbtools.c        2003-02-14 
> > 14:14:04.000000000 +0000
> > +++ ./console/fbtools.c     2006-08-23 10:57:40.000000000 +0000
> > @@ -21,8 +21,6 @@
> >  #include <linux/vt.h>
> >  #include <linux/fb.h>
> >  
> > -#include <asm/page.h>
> > -
> >  #include "fbtools.h"
> >  
> >  /* -------------------------------------------------------------------- */
> > @@ -424,7 +422,7 @@
> >     goto err;
> >      }
> >  #endif
> > -    fb_mem_offset = (unsigned long)(fb_fix.smem_start) & (~PAGE_MASK);
> > +    fb_mem_offset = (unsigned long)(fb_fix.smem_start) & 
> > ~(sysconf(_SC_PAGE_SIZE)-1);
>                                                                       
> ^^^^^^^^^^^^^
>                                                                     Are you
> sure it is correct?

Yes, this is the correct way to detect the kernel page size at runtime,
either _SC_PAGE_SIZE or _SC_PAGESIZE is recognized.

Cheers,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
[EMAIL PROTECTED]                                   http://www.debian.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to