summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEdd Barrett <vext01@gmail.com>2014-01-01 23:16:27 +0000
committerEdd Barrett <vext01@gmail.com>2014-01-01 23:16:27 +0000
commit67ab5ee779afe6f493c019890160e2716f1debe1 (patch)
tree32ca31510ff3a7adc6a12db039887bdbfebfd195
parent8146aea8ef59b2096d17b37dc4924dec0bd2e7cb (diff)
downloadmicropython-67ab5ee779afe6f493c019890160e2716f1debe1.tar.gz
micropython-67ab5ee779afe6f493c019890160e2716f1debe1.zip
On OpenBSD MAP_ANONYMOUS is called MAP_ANON.
-rw-r--r--py/asmx64.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/asmx64.c b/py/asmx64.c
index 2c56f35c99..c542df5089 100644
--- a/py/asmx64.c
+++ b/py/asmx64.c
@@ -7,6 +7,10 @@
#include "misc.h"
#include "asmx64.h"
+#if defined(__OpenBSD__)
+#define MAP_ANONYMOUS MAP_ANON
+#endif
+
/* all offsets are measured in multiples of 8 bytes */
#define WORD_SIZE (8)