Skip to content

Commit 951ba10

Browse files
committed
fix: building on macos
1 parent b3dd4f0 commit 951ba10

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

crypto/oaes_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ static const char _NR[] = {
3434
#include <stddef.h>
3535
#include <time.h>
3636
#include <sys/timeb.h>
37-
#include <malloc.h>
3837
#include <string.h>
3938
#include <stdlib.h>
4039
#include <stdio.h>
4140

4241
#ifdef WIN32
42+
#include <malloc.h>
4343
#include <process.h>
4444
#else
4545
#include <sys/types.h>

scryptjane/scrypt-jane-portable.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,5 +277,12 @@ scrypt_ensure_zero(void *p, size_t len) {
277277
#endif
278278
}
279279

280+
#ifdef __APPLE__
281+
static size_t
282+
detect_cpu(void) {
283+
size_t cpu_flags = 0;
284+
return cpu_flags;
285+
}
286+
#else
280287
#include "scrypt-jane-portable-x86.h"
281-
288+
#endif

0 commit comments

Comments
 (0)