aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/slow-hash.c
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-01-25 19:37:45 +0200
committerRiccardo Spagni <ric@spagni.net>2016-01-25 19:37:45 +0200
commitd7b4e77aa3c49cafc34c4f26ec36e9aa553673c1 (patch)
treedf81081e4902d84a5faeb5956b0f7a8be3731de4 /src/crypto/slow-hash.c
parentMerge pull request #616 (diff)
parentMy markdown-fu sucks :P (diff)
downloadmonero-d7b4e77aa3c49cafc34c4f26ec36e9aa553673c1.tar.xz
Merge pull request #618
64f4cd9 My markdown-fu sucks :P (me0wmix) a6794e2 Instructions updated to include g++ package and omit optional packages (me0wmix) 34ebfe3 Last fixups in the Cmake stuff and better default build instruction (me0wmix) 82ecb3f More formatting fixes to instructions (me0wmix) efc771d Corrected formatting on OpenBSD instructions (me0wmix) c965bf4 Added/corrected OpenBSD build instructions. (me0wmix) 28f95eb OpenBSD support for Monero. (me0wmix)
Diffstat (limited to 'src/crypto/slow-hash.c')
-rw-r--r--src/crypto/slow-hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/slow-hash.c b/src/crypto/slow-hash.c
index 544083fb0..903a3792f 100644
--- a/src/crypto/slow-hash.c
+++ b/src/crypto/slow-hash.c
@@ -421,7 +421,7 @@ void slow_hash_allocate_state(void)
hp_state = (uint8_t *) VirtualAlloc(hp_state, MEMORY, MEM_LARGE_PAGES |
MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
#else
-#if defined(__APPLE__) || defined(__FreeBSD__)
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)
hp_state = mmap(0, MEMORY, PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANON, 0, 0);
#else