From 2ff7cc58d30823f258f860cf6f25232c96d6e106 Mon Sep 17 00:00:00 2001 From: alepulver Date: Fri, 15 Sep 2006 19:11:28 +0000 Subject: - Try to fix building on sparc64 (add #ifdef __i386__). Reported by: pointyhat --- games/r1q2/files/patch-linux__sys_linux.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'games/r1q2/files') diff --git a/games/r1q2/files/patch-linux__sys_linux.c b/games/r1q2/files/patch-linux__sys_linux.c index 11bf85dd6fbf..484c05cfee7d 100644 --- a/games/r1q2/files/patch-linux__sys_linux.c +++ b/games/r1q2/files/patch-linux__sys_linux.c @@ -1,5 +1,5 @@ ---- linux/sys_linux.c.orig Fri May 19 18:31:30 2006 -+++ linux/sys_linux.c Fri May 19 18:32:04 2006 +--- linux/sys_linux.c.orig Fri Sep 15 15:50:28 2006 ++++ linux/sys_linux.c Fri Sep 15 15:51:43 2006 @@ -230,7 +230,7 @@ size = backtrace (array, sizeof(array)/sizeof(void*)); @@ -9,7 +9,17 @@ array[1] = (void *) uc->uc_mcontext.gregs[REG_EIP]; #endif -@@ -414,29 +414,17 @@ +@@ -309,7 +309,9 @@ + + void Sys_DebugBreak (void) + { ++#ifdef __i386__ + __asm ("int $3"); ++#endif + } + + void Sys_Warn (char *warning, ...) +@@ -414,29 +416,17 @@ void *(*GetGameAPI) (void *); char name[MAX_OSPATH]; @@ -41,7 +51,7 @@ game_library = dlopen (name, RTLD_NOW ); } else -@@ -448,7 +436,7 @@ +@@ -448,7 +438,7 @@ path = FS_NextPath (path); if (!path) return NULL; // couldn't find one anywhere -- cgit