# Fix FTBFS with GCC 4.7.
# Closes: #672823

diff -Naur mana-0.6.1.orig/src/cpp0x_compat/cstdint mana-0.6.1/src/cpp0x_compat/cstdint
--- mana-0.6.1.orig/src/cpp0x_compat/cstdint	2012-04-02 20:24:42.000000000 +0200
+++ mana-0.6.1/src/cpp0x_compat/cstdint	2012-05-14 18:36:14.763617436 +0200
@@ -5,3 +5,7 @@
  * compiles Mana fine so it apparently understands types like uint16_t by
  * default.
  */
+
+typedef unsigned char  uint8_t;
+typedef unsigned short uint16_t;
+typedef unsigned int   uint32_t;
diff -Naur mana-0.6.1.orig/src/gui/widgets/tabbedarea.h mana-0.6.1/src/gui/widgets/tabbedarea.h
--- mana-0.6.1.orig/src/gui/widgets/tabbedarea.h	2012-04-02 20:24:42.000000000 +0200
+++ mana-0.6.1/src/gui/widgets/tabbedarea.h	2012-05-14 18:37:21.614229306 +0200
@@ -98,7 +98,8 @@
         int getContainerHeight() const
         { return mWidgetContainer->getHeight(); }
 
-        using gcn::TabbedArea::setSelectedTab;
+		void setSelectedTab(unsigned int index)
+		{ gcn::TabbedArea::setSelectedTab(index); }
 
         void setSelectedTab(gcn::Tab *tab);
 
diff -Naur mana-0.6.1.orig/src/gui/widgets/textfield.h mana-0.6.1/src/gui/widgets/textfield.h
--- mana-0.6.1.orig/src/gui/widgets/textfield.h	2012-04-02 20:24:42.000000000 +0200
+++ mana-0.6.1/src/gui/widgets/textfield.h	2012-05-14 18:37:51.397606351 +0200
@@ -63,6 +63,7 @@
 
 class AutoCompleteLister {
 public:
+	virtual ~AutoCompleteLister() {}
     virtual void getAutoCompleteList(std::vector<std::string>&) const {}
 };
 
diff -Naur mana-0.6.1.orig/src/net/download.h mana-0.6.1/src/net/download.h
--- mana-0.6.1.orig/src/net/download.h	2012-04-02 20:24:42.000000000 +0200
+++ mana-0.6.1/src/net/download.h	2012-05-14 18:38:19.257021318 +0200
@@ -18,6 +18,7 @@
  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <cstdlib>
 #include <cstdio>
 #include <string>
 
diff -Naur mana-0.6.1.orig/src/resources/itemdb.h mana-0.6.1/src/resources/itemdb.h
--- mana-0.6.1.orig/src/resources/itemdb.h	2012-04-02 20:24:42.000000000 +0200
+++ mana-0.6.1/src/resources/itemdb.h	2012-05-14 18:38:46.304451305 +0200
@@ -78,7 +78,7 @@
           mLoaded(false)
         {}
 
-        ~ItemDB()
+        virtual ~ItemDB()
         {}
 
         /**
