--- fribidi-0.19.2.orig/lib/common.h 2010-12-08 19:57:28.000000000 -0500 +++ fribidi-0.19.2/lib/common.h 2010-12-08 20:08:57.000000000 -0500 @@ -138,10 +138,13 @@ # ifndef __FRIBIDI_DOC # include # endif /* __FRIBIDI_DOC */ -# define FRIBIDI_CHUNK_SIZE (PAGE_SIZE - 16) -# else /* !HAVE_ASM_PAGE_H */ +# ifdef PAGE_SIZE +# define FRIBIDI_CHUNK_SIZE (PAGE_SIZE - 16) +# endif /* PAGE_SIZE */ +# endif /* HAVE_ASM_PAGE_H */ +# ifndef FRIBIDI_CHUNK_SIZE # define FRIBIDI_CHUNK_SIZE (4096 - 16) -# endif /* !HAVE_ASM_PAGE_H */ +# endif /* FRIBIDI_CHUNK_SIZE */ #else /* FRIBIDI_CHUNK_SIZE */ # if FRIBIDI_CHUNK_SIZE < 256 # error FRIBIDI_CHUNK_SIZE now should define the size of a chunk in bytes.