Bug 747322 - Fix jemalloc mmap wrapper for s390x. r=jlebar,a=npotb
authorMike Hommey <mh+mozilla@glandium.org>
Mon, 23 Apr 2012 08:31:55 +0200
changeset 92105 bd9cdcd353e63ea3a1a0e22e937a1c180480aa64
parent 92104 f4d242fc253498c472f52c88833cd935486c0eba
child 92109 e29b3d77f80802e46c3a0b5f1d78330a76b59ca5
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersjlebar, npotb
bugs747322
milestone14.0a1
Bug 747322 - Fix jemalloc mmap wrapper for s390x. r=jlebar,a=npotb
memory/jemalloc/jemalloc.c
--- a/memory/jemalloc/jemalloc.c
+++ b/memory/jemalloc/jemalloc.c
@@ -400,19 +400,19 @@ void *_mmap(void *addr, size_t length, i
             int fd, off_t offset)
 {
 /* S390 only passes one argument to the mmap system call, which is a
  * pointer to a structure containing the arguments */
 #ifdef __s390__
 	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);
 #else
 #ifdef SYS_mmap2
 	return (void *) syscall(SYS_mmap2, addr, length, prot, flags,
 	                       fd, offset >> 12);
 #else