feat(video_core): Fix Linux compilation issues in Hybrid Memory Manager
- Added missing <thread> header for std::thread usage - Added <fcntl.h> for O_CLOEXEC and O_NONBLOCK definitions - Fixed struct initialization order in uffdio_copy to match declaration order Signed-off-by: Zephyron <zephyron@citron-emu.org>
This commit is contained in:
parent
34693001aa
commit
777111dfb4
2 changed files with 3 additions and 1 deletions
|
@ -15,6 +15,7 @@
|
|||
#include <sys/syscall.h>
|
||||
#include <linux/userfaultfd.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <fcntl.h>
|
||||
#elif defined(_WIN32)
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
@ -263,8 +264,8 @@ void FaultManagedAllocator::FaultThread() {
|
|||
|
||||
if (page) {
|
||||
struct uffdio_copy copy = {
|
||||
.src = (uintptr_t)page,
|
||||
.dst = (uintptr_t)addr,
|
||||
.src = (uintptr_t)page,
|
||||
.len = PageSize,
|
||||
.mode = 0
|
||||
};
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
#include <list>
|
||||
#include <set>
|
||||
#include <map>
|
||||
#include <thread>
|
||||
|
||||
#include "common/common_types.h"
|
||||
#include "video_core/vulkan_common/vulkan_device.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue