From 0eca706d5615a6ff1a9714745c1a14ecea357ac2 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Mon, 7 Mar 2016 22:09:33 +0800 Subject: [PATCH] provide const value for MAP_ANONYMOUS --- lib/system/alloc.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/system/alloc.nim b/lib/system/alloc.nim index ff3e42fa14..c0b697238b 100644 --- a/lib/system/alloc.nim +++ b/lib/system/alloc.nim @@ -90,6 +90,8 @@ elif defined(posix): const MAP_ANONYMOUS = 0x1000 elif defined(solaris): const MAP_ANONYMOUS = 0x100 + elif defined(linux): + const MAP_ANONYMOUS = 0x20'i32 else: var MAP_ANONYMOUS {.importc: "MAP_ANONYMOUS", header: "".}: cint