Gentoo Archives: gentoo-commits

From: "Ian Whyman (thev00d00)" <thev00d00@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/fribidi/files: fribidi-0.19.6-page-size-header.patch
Date: Sat, 03 May 2014 10:11:59
Message-Id: 20140503101156.9D0A22004E@flycatcher.gentoo.org
1 thev00d00 14/05/03 10:11:56
2
3 Added: fribidi-0.19.6-page-size-header.patch
4 Log:
5 Version Bump
6
7 (Portage version: 2.2.10/cvs/Linux x86_64, unsigned Manifest commit)
8
9 Revision Changes Path
10 1.1 dev-libs/fribidi/files/fribidi-0.19.6-page-size-header.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/fribidi/files/fribidi-0.19.6-page-size-header.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/fribidi/files/fribidi-0.19.6-page-size-header.patch?rev=1.1&content-type=text/plain
14
15 Index: fribidi-0.19.6-page-size-header.patch
16 ===================================================================
17 diff -ur fribidi-0.19.6.old/lib/common.h fribidi-0.19.6/lib/common.h
18 --- fribidi-0.19.6.old/lib/common.h 2012-12-30 00:12:59.000000000 +0000
19 +++ fribidi-0.19.6/lib/common.h 2014-05-03 11:04:19.969727962 +0100
20 @@ -130,14 +130,8 @@
21 /* FRIBIDI_CHUNK_SIZE is the number of bytes in each chunk of memory being
22 * allocated for data structure pools. */
23 #ifndef FRIBIDI_CHUNK_SIZE
24 -# if HAVE_ASM_PAGE_H
25 -# ifndef __FRIBIDI_DOC
26 -# include <asm/page.h>
27 -# endif /* __FRIBIDI_DOC */
28 -# define FRIBIDI_CHUNK_SIZE (PAGE_SIZE - 16)
29 -# else /* !HAVE_ASM_PAGE_H */
30 -# define FRIBIDI_CHUNK_SIZE (4096 - 16)
31 -# endif /* !HAVE_ASM_PAGE_H */
32 +# include <unistd.h>
33 +# define FRIBIDI_CHUNK_SIZE (sysconf(_SC_PAGESIZE) - 16)
34 #else /* FRIBIDI_CHUNK_SIZE */
35 # if FRIBIDI_CHUNK_SIZE < 256
36 # error FRIBIDI_CHUNK_SIZE now should define the size of a chunk in bytes.