]> git.pld-linux.org Git - packages/SVGATextMode.git/blob - SVGATextMode-gcc4.patch
- fixed stmmenu patch instead of disabling it
[packages/SVGATextMode.git] / SVGATextMode-gcc4.patch
1 diff -Nru SVGATextMode-1.10.orig/cfgfile.y SVGATextMode-1.10/cfgfile.y
2 --- SVGATextMode-1.10.orig/cfgfile.y    2005-05-12 19:41:58.461501000 +0200
3 +++ SVGATextMode-1.10/cfgfile.y 2005-05-15 17:53:24.099339552 +0200
4 @@ -32,6 +32,7 @@
5  #include "validate.h"
6  #include "messages.h"
7  #include "misc.h"
8 +#include <sys/io.h>
9  #include <sys/stat.h>
10  
11  /* if VGA_CAN_DO_64KB is defined, 32k chars per screen are allowed */
12 diff -Nru SVGATextMode-1.10.orig/cfglex.l SVGATextMode-1.10/cfglex.l
13 --- SVGATextMode-1.10.orig/cfglex.l     1997-09-08 20:07:20.000000000 +0200
14 +++ SVGATextMode-1.10/cfglex.l  2005-05-15 17:52:21.312884544 +0200
15 @@ -29,6 +29,7 @@
16  #include "y.tab.h"
17  #include "messages.h"
18  #include "misc.h"
19 +#include "vga_prg.h"
20  
21  #define unquote_yytext  ( *(yytext+(yyleng-1))='\0' , (yytext+1) )   /* works, but doesn't allow spaces */
22  #define unquote1_yytext  ( *(yytext+(yyleng-1))='\0' , (yytext) )   /* works, but doesn't allow spaces */
23 diff -Nru SVGATextMode-1.10.orig/misc.h SVGATextMode-1.10/misc.h
24 --- SVGATextMode-1.10.orig/misc.h       1998-09-05 16:18:44.000000000 +0200
25 +++ SVGATextMode-1.10/misc.h    2005-05-12 20:09:08.707666464 +0200
26 @@ -24,6 +24,7 @@
27  #ifndef _MISC_H
28  #define _MISC_H
29  
30 +#undef ulong
31  #include <sys/types.h>
32  
33  /*
34 diff -Nru SVGATextMode-1.10.orig/vga_prg.h SVGATextMode-1.10/vga_prg.h
35 --- SVGATextMode-1.10.orig/vga_prg.h    2000-09-03 00:03:07.000000000 +0200
36 +++ SVGATextMode-1.10/vga_prg.h 2005-05-15 17:50:08.282108296 +0200
37 @@ -41,13 +41,13 @@
38  #  define iopl(x) (0)
39  #else
40  extern int iopl(int);
41 -#  include <asm/io.h>
42 +#  include <sys/io.h>
43  #  ifdef __ALPHA_IO_H
44 -#    define _ASM_IO_H
45 +#    define _SYS_IO_H
46  #  endif
47  #endif
48  
49 -#ifndef _ASM_IO_H
50 +#ifndef _SYS_IO_H
51  #  ifdef DJGPP
52  #    include <pc.h>
53  #    define outb(data,port) outportb(port,data)
54 diff -Nru SVGATextMode-1.10.orig/XFREE/common_hw/xf86_PCI.c SVGATextMode-1.10/XFREE/common_hw/xf86_PCI.c
55 --- SVGATextMode-1.10.orig/XFREE/common_hw/xf86_PCI.c   2000-09-03 01:37:09.000000000 +0200
56 +++ SVGATextMode-1.10/XFREE/common_hw/xf86_PCI.c        2005-05-12 20:11:14.873486344 +0200
57 @@ -37,6 +37,7 @@
58  #define xf86AddIOPorts(x,y,z)
59  #define xf86EnableIOPorts(x)
60  #define xf86DisableIOPorts(x)
61 +#undef ulong
62  #include "stdlib.h"
63  #define xalloc malloc
64  #define xfree free
65 diff -Nru SVGATextMode-1.10.orig/XFREE/mach64/mach64.c SVGATextMode-1.10/XFREE/mach64/mach64.c
66 --- SVGATextMode-1.10.orig/XFREE/mach64/mach64.c        1998-10-08 21:48:24.000000000 +0200
67 +++ SVGATextMode-1.10/XFREE/mach64/mach64.c     2005-05-12 20:14:25.823457536 +0200
68 @@ -23,6 +23,7 @@
69   ***/
70  
71  #include <stdio.h>
72 +#undef ulong
73  #include <stdlib.h>
74  #include <string.h>
75  #include <unistd.h>
76 diff -Nru SVGATextMode-1.10.orig/XFREE/mach64/mach64_mem_access.c SVGATextMode-1.10/XFREE/mach64/mach64_mem_access.c
77 --- SVGATextMode-1.10.orig/XFREE/mach64/mach64_mem_access.c     1997-04-15 21:22:50.000000000 +0200
78 +++ SVGATextMode-1.10/XFREE/mach64/mach64_mem_access.c  2005-05-12 20:13:53.235411672 +0200
79 @@ -30,6 +30,7 @@
80  /************************************************************************/
81  
82  #include <unistd.h>
83 +#undef ulong
84  #include <fcntl.h>
85  #include <errno.h>
86  #include "messages.h"
87 diff -Nru SVGATextMode-1.10.orig/XFREE/riva128_clock.c SVGATextMode-1.10/XFREE/riva128_clock.c
88 --- SVGATextMode-1.10.orig/XFREE/riva128_clock.c        2005-05-12 19:41:58.468500000 +0200
89 +++ SVGATextMode-1.10/XFREE/riva128_clock.c     2005-05-12 20:15:16.138808440 +0200
90 @@ -61,6 +61,7 @@
91  #include <sys/mman.h>
92  #include <stdio.h>
93  #include <math.h>
94 +#undef ulong
95  #include <stdlib.h>
96  #include <fcntl.h>
97  #include "messages.h"
98 diff -Nru SVGATextMode-1.10.orig/XFREE/vgaPCI.c SVGATextMode-1.10/XFREE/vgaPCI.c
99 --- SVGATextMode-1.10.orig/XFREE/vgaPCI.c       2000-09-03 00:08:48.000000000 +0200
100 +++ SVGATextMode-1.10/XFREE/vgaPCI.c    2005-05-12 20:12:41.386334392 +0200
101 @@ -8,7 +8,7 @@
102   *
103   */
104  /* $XConsortium: vgaPCI.c /main/10 1996/10/25 10:34:22 kaleb $ */
105 -
106 +#undef ulong
107  #include <stdlib.h>
108  #define xalloc malloc
109  #define xfree free
110 diff -Nru SVGATextMode-1.10.orig/XFREE/voodoo_clock.c SVGATextMode-1.10/XFREE/voodoo_clock.c
111 --- SVGATextMode-1.10.orig/XFREE/voodoo_clock.c 2005-05-12 19:41:58.476499000 +0200
112 +++ SVGATextMode-1.10/XFREE/voodoo_clock.c      2005-05-15 16:48:08.023673544 +0200
113 @@ -5,6 +5,7 @@
114                                   -- Jakub Bogusz <qboosh@pld.org.pl> */
115  
116  #define STM_XFREE
117 +#undef ulong
118  #include <stdlib.h>
119  #include "messages.h"
120  #include "compiler.h"
121 @@ -16,7 +17,7 @@
122  #define PCI_DEVICE_ID_VOODOO3  0x0005
123  #define PCI_DEVICE_ID_VOODOO4  0x0009
124  
125 -static vgaPCIInformation *vgaPCIInfo;
126 +vgaPCIInformation *vgaPCIInfo;
127  
128  /* function taken from svgalib (banshee.c) */
129  #define REFFREQ 14318.18
This page took 0.083167 seconds and 3 git commands to generate.