From fbec4bec836bee2ddfe97049978d87a327d45edc Mon Sep 17 00:00:00 2001 From: Eric Scharff Date: Mon, 14 Jan 2008 10:58:11 -0700 Subject: [PATCH] Use non-standard MAP_ANON for memory mapping --- src/posix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posix.cpp b/src/posix.cpp index 7d743d6b7e..b0a5c3c404 100644 --- a/src/posix.cpp +++ b/src/posix.cpp @@ -509,7 +509,7 @@ class MySystem: public System { if (executable) { void* p = mmap(0, size, PROT_EXEC | PROT_READ | PROT_WRITE, - MAP_PRIVATE | MAP_ANONYMOUS | MAP_32BIT, -1, 0); + MAP_PRIVATE | MAP_ANON | MAP_32BIT, -1, 0); if (p == MAP_FAILED) { return 0;