diff options
Diffstat (limited to 'games/quake2lnx/files/patch-src::linux::rw_aa.c')
-rw-r--r-- | games/quake2lnx/files/patch-src::linux::rw_aa.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/games/quake2lnx/files/patch-src::linux::rw_aa.c b/games/quake2lnx/files/patch-src::linux::rw_aa.c new file mode 100644 index 000000000000..9e3db53af38d --- /dev/null +++ b/games/quake2lnx/files/patch-src::linux::rw_aa.c @@ -0,0 +1,30 @@ +--- src/linux/rw_aa.c.orig Thu Jun 12 18:26:51 2003 ++++ src/linux/rw_aa.c Thu Jun 12 18:30:59 2003 +@@ -53,15 +53,18 @@ + */
+
+ #include <termios.h>
++#include <unistd.h>
+ #include <sys/ioctl.h>
+ #include <sys/stat.h>
+-#include <sys/vt.h>
+ #include <stdarg.h>
+ #include <stdio.h>
+ #include <signal.h>
+ #include <sys/mman.h>
+ #include <dlfcn.h>
++#ifdef __linux__ ++#include <sys/vt.h>
+ #include <asm/io.h>
++#endif +
+ #include <aalib.h>
+
+@@ -240,7 +243,6 @@ + */
+ void SWimp_SetPalette( const unsigned char *palette )
+ {
+- static int tmppal[256*3];
+ const unsigned char *pal;
+ int i;
+
|