-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

tags 462420 + pending

Kumar Appaiah schrieb:
> tags 462420 + patch
> thanks
> 
> Hi!
> 
> Please find attached a simple patch to fix the FTBFS with gcc 4.3.
> 
> Thanks.
> 
> Kumar
> 

Hello Kumar,

thanks for your patch but the new build is uploaded with a patch, my
upload sponsor is just on holidays :)

It will be uploaded soon.

- --
Mit freundlichem Gruß / With kind regards,
Patrick Matthäi

E-Mail: [EMAIL PROTECTED]

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFH32ob2XA5inpabMcRAhrYAJ91HPvNA42tLSmSQrJ9G8rraq3KrgCfbPQh
k/Fg6PeDR9lvFrdzyU/bqVM=
=rn2D
-----END PGP SIGNATURE-----
#!/bin/sh /usr/share/dpatch/dpatch-run
## 01-fix-gcc4.3-ftbfs.dpatch by Bjørn Lindeijer <[EMAIL PROTECTED]>
## and Patrick Matthäi <[EMAIL PROTECTED]>
##
## DP: This patch fixes an FTBFS bug with GCC 4.3.

@DPATCH@

diff -Naur tmw-0.0.24.orig/src/being.h tmw-0.0.24/src/being.h
--- tmw-0.0.24.orig/src/being.h 2008-03-16 09:33:43.000000000 +0100
+++ tmw-0.0.24/src/being.h      2008-03-16 09:36:21.000000000 +0100
@@ -25,6 +25,7 @@
 #define _TMW_BEING_H
 
 #include <list>
+#include <memory>
 #include <string>
 #include <SDL_types.h>
 #include <vector>
@@ -355,7 +356,7 @@
          */
         void controlParticle(Particle *particle);
 
-        std::auto_ptr<Equipment> mEquipment;
+        const std::auto_ptr<Equipment> mEquipment;
 
     protected:
         /**
diff -Naur tmw-0.0.24.orig/src/game.h tmw-0.0.24/src/game.h
--- tmw-0.0.24.orig/src/game.h  2008-03-16 09:33:43.000000000 +0100
+++ tmw-0.0.24/src/game.h       2008-03-16 09:35:11.000000000 +0100
@@ -60,7 +60,7 @@
         /** The minimum frame time (used for frame limiting). */
         int mMinFrameTime;
 
-        typedef std::auto_ptr<MessageHandler> MessageHandlerPtr;
+        typedef const std::auto_ptr<MessageHandler> MessageHandlerPtr;
         MessageHandlerPtr mBeingHandler;
         MessageHandlerPtr mBuySellHandler;
         MessageHandlerPtr mChatHandler;
diff -Naur tmw-0.0.24.orig/src/gui/trade.h tmw-0.0.24/src/gui/trade.h
--- tmw-0.0.24.orig/src/gui/trade.h     2008-03-16 09:33:43.000000000 +0100
+++ tmw-0.0.24/src/gui/trade.h  2008-03-16 09:34:36.000000000 +0100
@@ -117,7 +117,7 @@
     private:
         Network *mNetwork;
 
-        typedef std::auto_ptr<Inventory> InventoryPtr;
+        typedef const std::auto_ptr<Inventory> InventoryPtr;
         InventoryPtr mMyInventory;
         InventoryPtr mPartnerInventory;
 

Attachment: 01-fix-gcc4.3-ftbfs.dpatch.sig
Description: Binary data

Reply via email to