Fix for GCC 4.4.
authorRichard W.M. Jones <rjones@redhat.com>
Sat, 21 Feb 2009 11:45:31 +0000 (11:45 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Sat, 21 Feb 2009 11:45:31 +0000 (11:45 +0000)
poco/mingw32-poco.spec
poco/poco-sprintf.patch [new file with mode: 0644]

index 9ddb98a..77b1c1f 100644 (file)
@@ -6,7 +6,7 @@
 
 Name:           mingw32-poco
 Version:        1.3.3p1
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        MinGW Windows C++ libraries for network-centric applications
 
 License:        Boost
@@ -18,6 +18,7 @@ BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Patch1001:      poco-01-buildsystem.patch
 Patch1002:      poco-02-makefiles.patch
 Patch1003:      poco-03-memcpy.patch
+Patch1004:      poco-sprintf.patch
 
 BuildArch:      noarch
 
@@ -54,6 +55,7 @@ cp build/config/MinGW build/config/MinGW-cross
 %patch1001 -p0
 %patch1002 -p0
 %patch1003 -p0
+%patch1004 -p1
 
 
 %build
@@ -99,7 +101,7 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
-* Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 1.3.3p1-3
+* Sat Feb 21 2009 Richard W.M. Jones <rjones@redhat.com> - 1.3.3p1-4
 - Rebuild for mingw32-gcc 4.4
 
 * Fri Feb  6 2009 Richard W.M. Jones <rjones@redhat.com> - 1.3.3p1-2
diff --git a/poco/poco-sprintf.patch b/poco/poco-sprintf.patch
new file mode 100644 (file)
index 0000000..39e31ba
--- /dev/null
@@ -0,0 +1,19 @@
+--- poco-1.3.3p1/Foundation/src/Environment.cpp        2008-10-09 17:11:22.000000000 +0100
++++ poco-1.3.3p1.mingw/Foundation/src/Environment.cpp  2009-02-21 10:28:33.000000000 +0000
+@@ -35,6 +35,7 @@
+ #include "Poco/Environment.h"
++#include <cstdio>
+ #include <cstdlib>
+@@ -108,7 +109,7 @@
+       NodeId id;
+       nodeId(id);
+       char result[18];
+-      std::sprintf(result, "%02x:%02x:%02x:%02x:%02x:%02x",
++      sprintf(result, "%02x:%02x:%02x:%02x:%02x:%02x",
+               id[0],
+               id[1],
+               id[2],