Blob Blame History Raw
The STL headers in gcc-4.3 have been cleaned up, so that the headers don't drag in
unnecessary dependencies which aren't requested by the standard.
This fixes build for gcc-4.3

Lubomir Kundrak <lkundrak@redhat.com>

diff -rup hydrogen-0.9.3.orig/src/gui/DrumkitManager.h hydrogen-0.9.3/src/gui/DrumkitManager.h
--- hydrogen-0.9.3.orig/src/gui/DrumkitManager.h	2005-10-18 00:32:04.000000000 +0200
+++ hydrogen-0.9.3/src/gui/DrumkitManager.h	2008-01-03 21:45:23.000000000 +0100
@@ -43,6 +43,7 @@
 #include <qwidget.h>
 
 #include <vector>
+#include <cstdlib>
 
 #include "UI/DrumkitManager_UI.h"
 #include "lib/Object.h"
diff -rup hydrogen-0.9.3.orig/src/gui/main.cpp hydrogen-0.9.3/src/gui/main.cpp
--- hydrogen-0.9.3.orig/src/gui/main.cpp	2005-11-08 15:52:51.000000000 +0100
+++ hydrogen-0.9.3/src/gui/main.cpp	2008-01-03 21:51:21.000000000 +0100
@@ -43,6 +43,7 @@
 #include "lib/Exception.h"
 
 #include <iostream>
+#include <cstdlib>
 using namespace std;
 
 void showInfo();
diff -rup hydrogen-0.9.3.orig/src/lib/FLACFile.cpp hydrogen-0.9.3/src/lib/FLACFile.cpp
--- hydrogen-0.9.3.orig/src/lib/FLACFile.cpp	2008-01-03 21:06:25.000000000 +0100
+++ hydrogen-0.9.3/src/lib/FLACFile.cpp	2008-01-03 21:39:52.000000000 +0100
@@ -27,6 +27,7 @@
 
 #include <vector>
 #include <fstream>
+#include <cstring>
 
 #ifdef FLAC_SUPPORT
 
diff -rup hydrogen-0.9.3.orig/src/tools/HydrogenPlayer.cpp hydrogen-0.9.3/src/tools/HydrogenPlayer.cpp
--- hydrogen-0.9.3.orig/src/tools/HydrogenPlayer.cpp	2005-10-18 00:32:04.000000000 +0200
+++ hydrogen-0.9.3/src/tools/HydrogenPlayer.cpp	2008-01-04 23:30:06.000000000 +0100
@@ -28,6 +28,7 @@
 #include <iostream>
 #include <stdio.h>
 #include <string>
+#include <cstdlib>
 
 #include "lib/Hydrogen.h"
 #include "lib/LocalFileMng.h"