blob: ce2f2e935ae8b8c9d5d4d44305d35501ee34c6f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-ad,v 1.2 2009/06/06 22:04:50 wiz Exp $
--- code/qcommon/vm_x86_64.c.orig 2008-08-06 16:09:29.000000000 +0000
+++ code/qcommon/vm_x86_64.c
@@ -58,6 +58,10 @@ void assemble_line(const char* input, si
#endif
#endif // USE_GAS
+#ifndef MAP_ANONYMOUS
+#define MAP_ANONYMOUS MAP_ANON
+#endif
+
static void VM_Destroy_Compiled(vm_t* self);
/*
@@ -246,7 +250,7 @@ void emit(const char* fmt, ...)
#else
#define JMPIARG \
emit("movq $%lu, %%rax", vm->codeBase+vm->instructionPointers[iarg]); \
- emit("jmpq *%rax");
+ emit("jmpq *%%rax");
#endif
// integer compare and jump
|