mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-27 02:44:21 +01:00
vm_native: enable memfd_create on FreeBSD
This commit is contained in:
parent
0262076bfe
commit
de6f3b5653
|
|
@ -30,6 +30,8 @@ static int memfd_create_(const char *name, uint flags)
|
|||
{
|
||||
return syscall(__NR_memfd_create, name, flags);
|
||||
}
|
||||
#elif defined(__FreeBSD__)
|
||||
#define memfd_create_ memfd_create
|
||||
#endif
|
||||
|
||||
namespace utils
|
||||
|
|
@ -289,7 +291,7 @@ namespace utils
|
|||
{
|
||||
#ifdef _WIN32
|
||||
m_handle = ensure(::CreateFileMappingW(INVALID_HANDLE_VALUE, nullptr, PAGE_EXECUTE_READWRITE, 0, m_size, nullptr));
|
||||
#elif __linux__
|
||||
#elif defined(__linux__) || defined(__FreeBSD__)
|
||||
m_file = -1;
|
||||
|
||||
// Try to use 2MB pages for 2M-aligned shm
|
||||
|
|
|
|||
Loading…
Reference in a new issue