Skip to content

Commit c5a56ff

Browse files
committed
Change to yescrypt-best.c
1 parent 5b71de1 commit c5a56ff

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

cmake/randomx.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if (WITH_RANDOMX)
5959
if (WIN32)
6060
set(SOURCES_CRYPTO
6161
"${SOURCES_CRYPTO}"
62-
src/crypto/defyx/yescrypt-ref.c
62+
src/crypto/defyx/yescrypt-best.c
6363
)
6464
else()
6565
set(SOURCES_CRYPTO

src/crypto/defyx/yescrypt-platform.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
* SUCH DAMAGE.
1919
*/
2020

21+
#ifdef __unix
2122
#include <sys/mman.h>
23+
#endif
24+
2225
#include <stdint.h>
2326

2427
#include "yescrypt.h"
@@ -76,7 +79,7 @@ alloc_region(yescrypt_region_t * region, size_t size)
7679
#else
7780
base = aligned = NULL;
7881
if (size + 63 < size) {
79-
errno = ENOMEM;
82+
//errno = ENOMEM;
8083
} else if ((base = malloc(size + 63)) != NULL) {
8184
aligned = base + 63;
8285
aligned -= (uintptr_t)aligned & 63;

0 commit comments

Comments
 (0)