diff options
author | Antonio Huete Jimenez <tuxillo@quantumachine.net> | 2016-12-15 02:27:53 -0800 |
---|---|---|
committer | Antonio Huete Jimenez <tuxillo@quantumachine.net> | 2016-12-15 02:27:53 -0800 |
commit | b00da61eab03df2268a2c9946e03385a7d38a5fb (patch) | |
tree | f76858e759a8ac2a49d1b6fd434fbd26ff77bb9d /src/crypto/slow-hash.c | |
parent | Merge pull request #1445 (diff) | |
download | monero-b00da61eab03df2268a2c9946e03385a7d38a5fb.tar.xz |
Preliminary support for DragonFly BSD
- It builds but no further testing has been done.
Diffstat (limited to 'src/crypto/slow-hash.c')
-rw-r--r-- | src/crypto/slow-hash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crypto/slow-hash.c b/src/crypto/slow-hash.c index 2ac303a36..66d9ca5d9 100644 --- a/src/crypto/slow-hash.c +++ b/src/crypto/slow-hash.c @@ -442,7 +442,8 @@ 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__) || defined(__OpenBSD__) +#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || \ + defined(__DragonFly__) hp_state = mmap(0, MEMORY, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, 0, 0); #else |