diff options
author | alepulver <alepulver@FreeBSD.org> | 2006-09-16 03:11:28 +0800 |
---|---|---|
committer | alepulver <alepulver@FreeBSD.org> | 2006-09-16 03:11:28 +0800 |
commit | 2ff7cc58d30823f258f860cf6f25232c96d6e106 (patch) | |
tree | e788496cf42815835f75f952c8ad3d806101b2bb /games | |
parent | 927c1ae5fed8986c913de880108dbd4b90ac800d (diff) | |
download | freebsd-ports-gnome-2ff7cc58d30823f258f860cf6f25232c96d6e106.tar.gz freebsd-ports-gnome-2ff7cc58d30823f258f860cf6f25232c96d6e106.tar.zst freebsd-ports-gnome-2ff7cc58d30823f258f860cf6f25232c96d6e106.zip |
- Try to fix building on sparc64 (add #ifdef __i386__).
Reported by: pointyhat
Diffstat (limited to 'games')
-rw-r--r-- | games/r1q2/files/patch-linux__sys_linux.c | 18 |
1 files changed, 14 insertions, 4 deletions
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
|