Skip to content

Commit 616a9ed

Browse files
committed
Dep/jemalloc: Fix build on arm64
Closes #31776 (cherry picked from commit b3d246e5a5570c365464e0f7ad8033d80726e2eb)
1 parent 112a669 commit 616a9ed

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

dep/jemalloc/Configure.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,17 @@
2121
#include <stdint.h>
2222
#include <stdio.h>
2323

24+
#ifndef _WIN32
25+
#include <unistd.h>
26+
#endif
27+
2428
#if defined(_M_IX86) || defined(_M_AMD64) || defined(__i386__) || defined(__x86_64__)
2529

2630
#ifdef _WIN32
2731
#include <intrin.h>
2832
#include <Windows.h>
2933
#else
3034
#include <cpuid.h>
31-
#include <unistd.h>
3235
#endif
3336

3437
static uint32_t GetNumSignificantVirtualAddressBits(void)

0 commit comments

Comments
 (0)