pkgsrc/games/quakeforge/patches/patch-at
tnn 0487aad739 Apply patches from PR pkg/37837 to get quakeforge going on DragonFly.
Also fixes the usual gcc4 suspects. (static/extern storage class mismatch)
2008-01-23 04:59:35 +00:00

22 lines
520 B
Text

$NetBSD: patch-at,v 1.1 2008/01/23 04:59:37 tnn Exp $
--- qw/source/cl_sys_sdl.c.orig 2004-01-20 03:47:27.000000000 +0000
+++ qw/source/cl_sys_sdl.c
@@ -63,6 +63,7 @@ static __attribute__ ((unused)) const ch
#include "QF/console.h"
#include "QF/qargs.h"
#include "QF/sys.h"
+#include "QF/progs.h"
#include "client.h"
#include "compat.h"
@@ -108,6 +109,9 @@ shutdown (void)
#endif
}
+extern void Key_Progs_Init (progs_t *pr);
+void (*x)() = Key_Progs_Init;
+
#ifndef SDL_main
# define SDL_main main
#endif