Changeset View
Changeset View
Standalone View
Standalone View
games/iourbanterror/files/patch-code_qcommon_vm__x86.c
- This file was added.
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- code/qcommon/vm_x86.c.orig 2016-10-05 18:47:05 UTC | |||||
+++ code/qcommon/vm_x86.c | |||||
@@ -36,7 +36,7 @@ Foundation, Inc., 51 Franklin St, Fifth | |||||
/* need this on NX enabled systems (i386 with PAE kernel or | |||||
* noexec32=on x86_64) */ | |||||
-#ifdef __unix__ | |||||
+#if defined(__unix__) || defined(__linux__) || defined(__FreeBSD__) | |||||
#define VM_X86_MMAP | |||||
#endif | |||||
@@ -93,7 +93,11 @@ static int asmCallPtr = (int)doAsmCall; | |||||
#endif | |||||
+#ifdef __clang__ | |||||
+ int callMask = 0; | |||||
+#else | |||||
static int callMask = 0; | |||||
+#endif | |||||
static int instruction, pass; | |||||
static int lastConst = 0; |