forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-lang/nim: drop MAP_ANONYMOUS constant
Fixes build failure on mipsel Bug: nim-lang/Nim#4853 Reported-by: [email protected] Package-Manager: portage-2.3.1
- Loading branch information
Sergei Trofimovich
committed
Oct 6, 2016
1 parent
1a42e9e
commit 8cb2adb
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From fe362543de00806a3d69ddd0de33caf0cae2e57e Mon Sep 17 00:00:00 2001 | ||
From: GaveUp <[email protected]> | ||
Date: Tue, 4 Oct 2016 10:56:07 -0500 | ||
Subject: [PATCH] Revert change to osalloc.nim from commit 8d7a45f. | ||
|
||
Change caused MAP_ANONYMOUS to have an incorrect value when compiling | ||
for mipsel. | ||
|
||
Fixes #4852. | ||
--- | ||
lib/system/osalloc.nim | 2 -- | ||
1 file changed, 2 deletions(-) | ||
|
||
diff --git a/lib/system/osalloc.nim b/lib/system/osalloc.nim | ||
index b07a362..316dd74 100644 | ||
--- a/lib/system/osalloc.nim | ||
+++ b/lib/system/osalloc.nim | ||
@@ -87,8 +87,6 @@ elif defined(posix): | ||
const MAP_ANONYMOUS = 0x1000 | ||
elif defined(solaris): | ||
const MAP_ANONYMOUS = 0x100 | ||
- elif defined(linux): | ||
- const MAP_ANONYMOUS = 0x20 | ||
else: | ||
var | ||
MAP_ANONYMOUS {.importc: "MAP_ANONYMOUS", header: "<sys/mman.h>".}: cint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters