tags 470979 patch
thanks

Hello,

Find a patch in attachment which fixes bmpx issues with GCC 4.3.

Regards,
-- 
Gregory Colpart <[EMAIL PROTECTED]>  GnuPG:1024D/C1027A0E
Evolix - Informatique et Logiciels Libres http://www.evolix.fr/
diff -u -r ../bmpx-0.40.13/json/json_reader.cpp bmpx-0.40.13/json/json_reader.cpp
--- ../bmpx-0.40.13/json/json_reader.cpp	2007-10-18 19:17:09.000000000 +0200
+++ bmpx-0.40.13/json/json_reader.cpp	2008-03-24 19:55:44.147507273 +0100
@@ -6,6 +6,9 @@
 #include <iostream>
 #include <stdexcept>
 
+// Added for #470979 (ftbfs-gcc-4.3)
+#include <cstring>
+
 #if _MSC_VER >= 1400 // VC++ 8.0
 #pragma warning( disable : 4996 )   // disable warning about strdup being deprecated.
 #endif
diff -u -r ../bmpx-0.40.13/json/json_value.cpp bmpx-0.40.13/json/json_value.cpp
--- ../bmpx-0.40.13/json/json_value.cpp	2007-10-18 19:17:09.000000000 +0200
+++ bmpx-0.40.13/json/json_value.cpp	2008-03-24 19:55:21.687510822 +0100
@@ -12,6 +12,9 @@
 # include "json_batchallocator.h"
 #endif // #ifndef JSON_USE_SIMPLE_INTERNAL_ALLOCATOR
 
+// Added for #470979 (ftbfs-gcc-4.3)
+#include <cstring>
+
 #define JSON_ASSERT_UNREACHABLE assert( false )
 #define JSON_ASSERT( condition ) assert( condition );  // @todo <= change this into an exception throw
 #define JSON_ASSERT_MESSAGE( condition, message ) if (!( condition )) throw std::runtime_error( message );
diff -u -r ../bmpx-0.40.13/json/json_writer.cpp bmpx-0.40.13/json/json_writer.cpp
--- ../bmpx-0.40.13/json/json_writer.cpp	2007-10-18 19:17:09.000000000 +0200
+++ bmpx-0.40.13/json/json_writer.cpp	2008-03-24 19:55:00.015503494 +0100
@@ -4,6 +4,9 @@
 #include <stdio.h>
 #include <iostream>
 
+// Added for #470979 (ftbfs-gcc-4.3)
+#include <cstring>
+
 #if _MSC_VER >= 1400 // VC++ 8.0
 #pragma warning( disable : 4996 )   // disable warning about strdup being deprecated.
 #endif
diff -u -r ../bmpx-0.40.13/libhal++/util.cc bmpx-0.40.13/libhal++/util.cc
--- ../bmpx-0.40.13/libhal++/util.cc	2007-10-18 19:17:21.000000000 +0200
+++ bmpx-0.40.13/libhal++/util.cc	2008-03-24 19:52:02.987509890 +0100
@@ -3,6 +3,9 @@
 
 #include "types.hh"
 
+// Added for #470979 (ftbfs-gcc-4.3)
+#include <cstdlib>
+
 namespace Hal
 {
   namespace Util
diff -u -r ../bmpx-0.40.13/src/hal.hh bmpx-0.40.13/src/hal.hh
--- ../bmpx-0.40.13/src/hal.hh	2007-10-18 19:17:08.000000000 +0200
+++ bmpx-0.40.13/src/hal.hh	2008-03-24 19:52:19.011503080 +0100
@@ -46,6 +46,9 @@
 #include "database.hh"
 #include "hal++.hh"
 
+// Added for #470979 (ftbfs-gcc-4.3)
+#include <ctime>
+
 namespace Bmp
 {
     class HAL
@@ -169,7 +172,7 @@
 
         void  device_condition            (std::string const& udi,
                                            std::string const& cond_name,
-                                           std::string const& cond_name );
+                                           std::string const& cond_details );
         void  device_added                (std::string const& udi );
         void  device_removed              (std::string const& udi );
         void  device_property             (std::string const& udi,
diff -u -r ../bmpx-0.40.13/src/minisoup.cc bmpx-0.40.13/src/minisoup.cc
--- ../bmpx-0.40.13/src/minisoup.cc	2007-10-18 19:17:08.000000000 +0200
+++ bmpx-0.40.13/src/minisoup.cc	2008-03-24 19:53:48.899512544 +0100
@@ -26,6 +26,9 @@
 #  include <config.h>
 #endif //HAVE_CONFIG_H
 
+// Added for #470979 (ftbfs-gcc-4.3)
+#include <cstring>
+
 #include <glib/gstdio.h>
 #include <glibmm/i18n.h>
 #include <boost/format.hpp>
diff -u -r ../bmpx-0.40.13/src/parser/libxml2-sax-base.cc bmpx-0.40.13/src/parser/libxml2-sax-base.cc
--- ../bmpx-0.40.13/src/parser/libxml2-sax-base.cc	2007-10-18 19:17:06.000000000 +0200
+++ bmpx-0.40.13/src/parser/libxml2-sax-base.cc	2008-03-24 19:52:46.327667131 +0100
@@ -38,6 +38,9 @@
 
 #include "libxml2-sax-base.hh"
 
+// Added for #470979 (ftbfs-gcc-4.3)
+#include <cstring>
+
 namespace
 {
   xmlEntityPtr
diff -u -r ../bmpx-0.40.13/src/streams-shoutcast.cc bmpx-0.40.13/src/streams-shoutcast.cc
--- ../bmpx-0.40.13/src/streams-shoutcast.cc	2007-10-18 19:17:08.000000000 +0200
+++ bmpx-0.40.13/src/streams-shoutcast.cc	2008-03-24 19:53:30.427502970 +0100
@@ -28,6 +28,9 @@
 #include <iostream>
 #include <sstream>
 
+// Added for #470979 (ftbfs-gcc-4.3)
+#include <cstring>
+
 #include <glibmm.h>
 #include <glibmm/markup.h>
 #include <glibmm/i18n.h>
diff -u -r ../bmpx-0.40.13/src/vfs.hh bmpx-0.40.13/src/vfs.hh
--- ../bmpx-0.40.13/src/vfs.hh	2007-10-18 19:17:08.000000000 +0200
+++ bmpx-0.40.13/src/vfs.hh	2008-03-24 19:54:11.987499629 +0100
@@ -32,6 +32,9 @@
 #include "bmp/types/types-basic.hh"
 #include "bmp/types/types-library.hh"
 
+// Added for #470979 (ftbfs-gcc-4.3)
+#include <cstring>
+
 namespace Bmp
 {
     namespace VFS
diff -u -r ../bmpx-0.40.13/src/video-widget.cc bmpx-0.40.13/src/video-widget.cc
--- ../bmpx-0.40.13/src/video-widget.cc	2007-10-18 19:17:08.000000000 +0200
+++ bmpx-0.40.13/src/video-widget.cc	2008-03-24 19:50:27.571510091 +0100
@@ -27,6 +27,9 @@
 #include "audio/play.hh"
 #include <gst/video/video.h>
 
+// Added for #470979 (ftbfs-gcc-4.3)
+#include <cstring>
+
 namespace Bmp
 {
   using namespace Gtk;
diff -u -r ../bmpx-0.40.13/src/xds.cc bmpx-0.40.13/src/xds.cc
--- ../bmpx-0.40.13/src/xds.cc	2007-10-18 19:17:08.000000000 +0200
+++ bmpx-0.40.13/src/xds.cc	2008-03-24 19:51:01.519510713 +0100
@@ -26,6 +26,9 @@
 #include "xds.hh"
 #define MAX_URI_LEN 4096
 
+// Added for #470979 (ftbfs-gcc-4.3)
+#include <cstring>
+
 namespace Bmp
 {
     void

Reply via email to