diff options
author | Riccardo Spagni <ric@spagni.net> | 2014-09-11 12:00:30 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2014-09-11 12:00:30 +0200 |
commit | 6a70de32bf872d97f9eebc7564f1ee41ff149c36 (patch) | |
tree | 33c0d997ecfbebe1705142c6e5fe9bd1e5aec278 /src/crypto/slow-hash.c | |
parent | Merge pull request #123 from fluffypony/master (diff) | |
parent | cpu affinity fixes in performance tests for FreeBSD (diff) | |
download | monero-6a70de32bf872d97f9eebc7564f1ee41ff149c36.tar.xz |
Merge pull request #127 from fluffypony/master
FreeBSD compatibility and default log level changes
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 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 |