diff options
author | fluffypony <ric@spagni.net> | 2014-09-10 14:01:39 +0200 |
---|---|---|
committer | fluffypony <ric@spagni.net> | 2014-09-10 14:01:39 +0200 |
commit | ccb2ab2b7b982afa3f495779f852f25c7dd8b274 (patch) | |
tree | 4bf0ef76163d091d2aec18642c8263ca22736d8b /src | |
parent | Include sys/time.h on BSD (diff) | |
download | monero-ccb2ab2b7b982afa3f495779f852f25c7dd8b274.tar.xz |
mmap on FreeBSD doesn't have MAP_HUGETLB
Diffstat (limited to 'src')
-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 4d1594723..3aff7bd5d 100644 --- a/src/crypto/slow-hash.c +++ b/src/crypto/slow-hash.c @@ -330,7 +330,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__) +#if defined(__APPLE__) || defined(__FreeBSD__) hp_state = mmap(0, MEMORY, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, 0, 0); #else |