linux: Fix build

This commit is contained in:
Stefanos Kornilios Mitsis Poiitidis 2023-07-07 13:49:46 +03:00
parent 0edc265dc2
commit b211342d8a
3 changed files with 18 additions and 3 deletions

View File

@ -7,12 +7,24 @@
#include <sys/mman.h>
#endif
#if !defined(_WIN64)
enum PosixPageProtection
{
PAGE_NOACCESS = 0,
PAGE_READONLY = PROT_READ,
PAGE_READWRITE = PROT_READ | PROT_WRITE,
PAGE_EXECUTE = PROT_EXEC,
PAGE_EXECUTE_READ = PROT_EXEC | PROT_READ,
PAGE_EXECUTE_READWRITE = PROT_EXEC | PROT_READ | PROT_WRITE
};
#endif
#include "../Util/Log.h"
namespace Memory
{
namespace VirtualMemory {
static DWORD convertMemoryMode(MemoryMode mode)
static u32 convertMemoryMode(MemoryMode mode)
{
switch (mode)
{

View File

@ -5,7 +5,10 @@ namespace HLE::Libs::LibC {
static void init_env() //every game/demo should probably
{
__debugbreak();//if we reach here it will be a great progress :D
for(;;) {
printf("__debugbreak\n");
}
//__debugbreak();//if we reach here it will be a great progress :D
}
void LibC_RegisterFunc(SymbolsResolver* sym)

View File

@ -1,6 +1,6 @@
#pragma once
#include "../Types.h"
#include "../types.h"
namespace Lib {
class Timer final