From d74e0d78f54fc40160006e023f10d0e46bbf5e64 Mon Sep 17 00:00:00 2001 From: fake Date: Sat, 18 Sep 2004 19:25:53 +0000 Subject: [PATCH] fake: dosbox: add gcc34.patch [2004091207541125238] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@4280 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/mathieu/dosbox/gcc34.patch | 51 ++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 package/mathieu/dosbox/gcc34.patch diff --git a/package/mathieu/dosbox/gcc34.patch b/package/mathieu/dosbox/gcc34.patch new file mode 100644 index 000000000..b4b812ef1 --- /dev/null +++ b/package/mathieu/dosbox/gcc34.patch @@ -0,0 +1,51 @@ +--- dosbox-0.61-orig/include/dos_inc.h 2004-01-10 15:03:33.000000000 +0100 ++++ dosbox-0.61/include/dos_inc.h 2004-06-08 17:52:39.958890112 +0200 +@@ -215,22 +215,22 @@ + + class MemStruct { + public: +- INLINE Bit8u GetIt(Bit8u&,PhysPt addr) { ++ INLINE Bit8u GetIt(Bit8u,PhysPt addr) { + return mem_readb(pt+addr); + } +- INLINE Bit16u GetIt(Bit16u&,PhysPt addr) { ++ INLINE Bit16u GetIt(Bit16u,PhysPt addr) { + return mem_readw(pt+addr); + } +- INLINE Bit32u GetIt(Bit32u&,PhysPt addr) { ++ INLINE Bit32u GetIt(Bit32u,PhysPt addr) { + return mem_readd(pt+addr); + } +- INLINE void SaveIt(Bit8u&,PhysPt addr,Bit8u val) { ++ INLINE void SaveIt(Bit8u,PhysPt addr,Bit8u val) { + mem_writeb(pt+addr,val); + } +- INLINE void SaveIt(Bit16u&,PhysPt addr,Bit16u val) { ++ INLINE void SaveIt(Bit16u,PhysPt addr,Bit16u val) { + mem_writew(pt+addr,val); + } +- INLINE void SaveIt(Bit32u&,PhysPt addr,Bit32u val) { ++ INLINE void SaveIt(Bit32u,PhysPt addr,Bit32u val) { + mem_writed(pt+addr,val); + } + INLINE void SetPt(Bit16u seg) { pt=PhysMake(seg,0);} +--- dosbox-0.61-orig/src/dos/dos_classes.cpp 2004-01-10 15:03:34.000000000 +0100 ++++ dosbox-0.61/src/dos/dos_classes.cpp 2004-06-08 17:56:50.869745864 +0200 +@@ -121,7 +121,7 @@ + /* FCBs are filled with 0 */ + // .... + /* Init file pointer and max_files */ +- sSave(sPSP,file_table,RealMake(seg,offsetof(sPSP,files[0]))); ++ sSave(sPSP,file_table,RealMake(seg,offsetof(sPSP,files))); + sSave(sPSP,max_files,20); + for (i=0;i<20;i++) SetFileHandle(i,0xff); + +@@ -218,7 +218,7 @@ + MEM_BlockCopy(pt+offsetof(sPSP,cmdtail),Real2Phys(src),128); + } else { // empty + sSave(sPSP,cmdtail.count,0x00); +- mem_writeb(pt+offsetof(sPSP,cmdtail.buffer[0]),0x0d); ++ mem_writeb(pt+offsetof(sPSP,cmdtail.buffer),0x0d); + }; + }; +