- fix a sigbus error on sparc64; from Debian

breakage reported by sturm@
This commit is contained in:
ajacoutot 2009-02-08 22:31:58 +00:00
parent 9a8d1bd136
commit 3f5367e1af
3 changed files with 50 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.2 2009/02/08 16:54:54 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.3 2009/02/08 22:31:58 ajacoutot Exp $
COMMENT = platform game featuring buggers equipped with weapons
V = 0.5.0
DISTNAME = teeworlds-${V}-src
PKGNAME = teeworlds-${V}p0
PKGNAME = teeworlds-${V}p1
CATEGORIES = games
MAINTAINER = Jonathan Armani <dbd@asystant.net>

View File

@ -0,0 +1,24 @@
$OpenBSD: patch-bam-0_2_0_src_context_h,v 1.1 2009/02/08 22:31:58 ajacoutot Exp $
Fix bus error on sparc64.
--- bam-0.2.0/src/context.h.orig Mon Feb 9 00:11:33 2009
+++ bam-0.2.0/src/context.h Mon Feb 9 00:09:59 2009
@@ -5,7 +5,7 @@ struct TARGET
{
struct NODE *node;
struct TARGET *next;
-};
+} __attribute__((packed));
struct CONTEXT
{
@@ -24,7 +24,7 @@ struct CONTEXT
volatile int current_cmd_num;
int num_commands;
-};
+} __attribute__((packed));
const char *context_get_path(lua_State *L);
struct CONTEXT *context_get_pointer(lua_State *L);

View File

@ -0,0 +1,24 @@
$OpenBSD: patch-bam-0_2_0_src_node_h,v 1.1 2009/02/08 22:31:58 ajacoutot Exp $
Fix bus error on sparc64.
--- bam-0.2.0/src/node.h.orig Mon Feb 9 00:11:20 2009
+++ bam-0.2.0/src/node.h Mon Feb 9 00:10:15 2009
@@ -9,7 +9,7 @@ struct DEPENDENCY
{
struct NODE *node;
struct DEPENDENCY *next;
-};
+} __attribute__((packed));
#define USE_NODE_RB
@@ -55,7 +55,7 @@ struct NODE
unsigned int counted:1;
volatile unsigned int workstatus:2; /* 0 = undone, 1 = in the workings, 2 = done*/
-};
+} __attribute__((packed));
struct HEAP;
struct GRAPH;