summaryrefslogtreecommitdiffstats
path: root/meta-linaro-integration/recipes-overlayed/firefox/firefox/fixes/Bug-747322-Fix-jemalloc-mmap-wrapper-for-s390x.patch
blob: 17b667830e5966e510a7b4a3b32d4aae7bc59b3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Mike Hommey <mh@glandium.org>
Date: Fri, 20 Apr 2012 11:26:22 +0200
Subject: Bug 747322 - Fix jemalloc mmap wrapper for s390x

---
 memory/jemalloc/jemalloc.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/memory/jemalloc/jemalloc.c b/memory/jemalloc/jemalloc.c
index d792728..147e18f 100644
--- a/memory/jemalloc/jemalloc.c
+++ b/memory/jemalloc/jemalloc.c
@@ -403,9 +403,9 @@ void *_mmap(void *addr, size_t length, int prot, int flags,
 	struct {
 		void *addr;
 		size_t length;
-		int prot;
-		int flags;
-		int fd;
+		long prot;
+		long flags;
+		long fd;
 		off_t offset;
 	} args = { addr, length, prot, flags, fd, offset };
 	return (void *) syscall(SYS_mmap, &args);