On Wednesday 03 December 2003 21:54, Vít Vomáčko wrote: > I have problems with compiling svgalib 1.3.4 because og gcc 3.3 and I read > hear (http://bugs.gentoo.org/show_bug.cgi?id=23515) this: Patch to compile > svgalib 1.4.3 with gcc 3.3 > This patch allows the stable version of svgalib (1.4.3) to compile using > gcc 3.3.: > --- ./src/vga.c.old2003-06-26 18:01:47.778102000 -0400 > +++ ./src/vga.c2003-06-26 17:57:40.108102000 -0400 > @@ -3914,7 +3914,7 @@ > > #define ML_GETINT(x) \ > ptr = strtok(NULL, " "); if(!ptr) break; \ > -mmt.##x = atoi(ptr); > +mmt.x = atoi(ptr); > > ML_GETINT(HDisplay); > ML_GETINT(HSyncStart); > > But I dont know how and what to patch ( Itried to start epach but no > succes)
patch -p1 < patchname or do it by hand.... vim src/vga.c go to line 3914 and replace the line mmt.##x = atoi(ptr); by mmt.x = atoi(ptr); -- mathieu -- [EMAIL PROTECTED] mailing list