diff options
author | me0wmix <me0wmix@cryptoanarchy.localnet> | 2016-01-21 11:18:26 -0700 |
---|---|---|
committer | me0wmix <me0wmix@cryptoanarchy.localnet> | 2016-01-21 11:18:26 -0700 |
commit | 28f95eb001a47056287c8adf07c2638746ad8e48 (patch) | |
tree | 1ca085f0499b8e43d190b62dc02b15a5f1f0b2c5 /src/crypto/slow-hash.c | |
parent | Merge pull request #616 (diff) | |
download | monero-28f95eb001a47056287c8adf07c2638746ad8e48.tar.xz |
OpenBSD support for Monero.
Diffstat (limited to 'src/crypto/slow-hash.c')
-rw-r--r-- | src/crypto/slow-hash.c | 2 |
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 |