mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-24 13:11:30 +00:00
Fix q3vm execution on x86/x86_64 MacOSX
This commit is contained in:
parent
7a1f2bc92b
commit
ebec84c55d
1 changed files with 14 additions and 13 deletions
|
@ -25,20 +25,21 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#else
|
||||||
|
|
||||||
#ifdef __FreeBSD__
|
#ifdef __FreeBSD__
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _WIN32
|
|
||||||
#include <sys/mman.h> // for PROT_ stuff
|
#include <sys/mman.h> // for PROT_ stuff
|
||||||
#endif
|
|
||||||
|
|
||||||
/* need this on NX enabled systems (i386 with PAE kernel or
|
/* need this on NX enabled systems (i386 with PAE kernel or
|
||||||
* noexec32=on x86_64) */
|
* noexec32=on x86_64) */
|
||||||
#if defined(__linux__) || defined(__FreeBSD__)
|
|
||||||
#define VM_X86_MMAP
|
#define VM_X86_MMAP
|
||||||
|
|
||||||
|
// workaround for systems that use the old MAP_ANON macro
|
||||||
|
#ifndef MAP_ANONYMOUS
|
||||||
|
#define MAP_ANONYMOUS MAP_ANON
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void VM_Destroy_Compiled(vm_t* self);
|
static void VM_Destroy_Compiled(vm_t* self);
|
||||||
|
|
Loading…
Reference in a new issue