hydrogen/hydrogen-0.9.3-gcc43.patch

61 lines
2.1 KiB
Diff

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"
--- hydrogen-0.9.3.orig/src/lib/drivers/OssDriver.cpp 2009-01-25 14:12:53.000000000 +0100
+++ hydrogen-0.9.3/src/lib/drivers/OssDriver.cpp 2009-01-25 14:11:18.000000000 +0100
@@ -30,6 +30,7 @@
#include "../Preferences.h"
#include <pthread.h>
+#include <cstring>
audioProcessCallback ossDriver_audioProcessCallback;
bool ossDriver_running;