mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Fix compilation on android
Fall back to the default implementation of aligned_ttmem_alloc, which
was introduced as part of 39437f4e55
Fixes #2524
No functional change.
This commit is contained in:
parent
a910ba71ee
commit
3b70932b0d
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ typedef bool(*fun3_t)(HANDLE, CONST GROUP_AFFINITY*, PGROUP_AFFINITY);
|
|||
#include <sstream>
|
||||
#include <vector>
|
||||
|
||||
#ifdef __linux__
|
||||
#if defined(__linux__) && !defined(__ANDROID__)
|
||||
#include <stdlib.h>
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
|
@ -297,7 +297,7 @@ void prefetch(void* addr) {
|
|||
/// aligned_ttmem_alloc will return suitably aligned memory, and if possible use large pages.
|
||||
/// The returned pointer is the aligned one, while the mem argument is the one that needs to be passed to free.
|
||||
/// With c++17 some of this functionality can be simplified.
|
||||
#ifdef __linux__
|
||||
#if defined(__linux__) && !defined(__ANDROID__)
|
||||
|
||||
void* aligned_ttmem_alloc(size_t allocSize, void** mem) {
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue