Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/jemalloc/files: jemalloc-3.3.0-s390.patch
Date: Mon, 28 Jan 2013 20:17:32
Message-Id: 20130128201728.723FF20081@flycatcher.gentoo.org
1 vapier 13/01/28 20:17:28
2
3 Added: jemalloc-3.3.0-s390.patch
4 Log:
5 Add s390 love #429708 by Robin Johnson.
6
7 (Portage version: 2.2.0_alpha161/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
8
9 Revision Changes Path
10 1.1 dev-libs/jemalloc/files/jemalloc-3.3.0-s390.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/jemalloc/files/jemalloc-3.3.0-s390.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/jemalloc/files/jemalloc-3.3.0-s390.patch?rev=1.1&content-type=text/plain
14
15 Index: jemalloc-3.3.0-s390.patch
16 ===================================================================
17 From 0b0774d2bc6092ca5ad07f0653c569b6fa55c6fe Mon Sep 17 00:00:00 2001
18 From: Mike Frysinger <vapier@g.o>
19 Date: Mon, 28 Jan 2013 15:14:26 -0500
20 Subject: [PATCH] fix building for s390 systems
21
22 Checking for __s390x__ means you work on s390x, but not s390 (32bit)
23 systems. So use __s390__ which works for both.
24
25 With this, `make check` passes on s390.
26
27 Signed-off-by: Mike Frysinger <vapier@g.o>
28 ---
29 include/jemalloc/internal/jemalloc_internal.h.in | 2 +-
30 1 file changed, 1 insertion(+), 1 deletion(-)
31
32 diff --git a/include/jemalloc/internal/jemalloc_internal.h.in b/include/jemalloc/internal/jemalloc_internal.h.in
33 index c606c12..74a8bd5 100644
34 --- a/include/jemalloc/internal/jemalloc_internal.h.in
35 +++ b/include/jemalloc/internal/jemalloc_internal.h.in
36 @@ -287,7 +287,7 @@ static const bool config_ivsalloc =
37 # ifdef __powerpc__
38 # define LG_QUANTUM 4
39 # endif
40 -# ifdef __s390x__
41 +# ifdef __s390__
42 # define LG_QUANTUM 4
43 # endif
44 # ifdef __SH4__
45 --
46 1.8.0.2