diff --git a/commoncpp2-1.7.3-gcc44.patch b/commoncpp2-1.7.3-gcc44.patch new file mode 100644 index 0000000..7966605 --- /dev/null +++ b/commoncpp2-1.7.3-gcc44.patch @@ -0,0 +1,21 @@ +diff -up commoncpp2-1.7.3/src/cidr.cpp.orig commoncpp2-1.7.3/src/cidr.cpp +--- commoncpp2-1.7.3/src/cidr.cpp.orig 2009-04-06 21:24:07.857718325 +0200 ++++ commoncpp2-1.7.3/src/cidr.cpp 2009-04-06 21:50:26.874088776 +0200 +@@ -202,7 +202,7 @@ void IPV4Cidr::set(const char *cp) + #if defined(_MSC_VER) && _MSC_VER >= 1500 + ep = (char *)strchr(cp, '/'); + #else +- ep = strchr(cp, '/'); ++ ep = (char *)strchr(cp, '/'); + #endif + + if(ep) +@@ -332,7 +332,7 @@ void IPV6Cidr::set(const char *cp) + memset(&netmask, 0, sizeof(netmask)); + bitset((bit_t *)&netmask, getMask(cp)); + setString(cbuf, sizeof(cbuf), cp); +- ep = strchr(cp, '/'); ++ ep = (char *)strchr(cp, '/'); + if(ep) + *ep = 0; + diff --git a/commoncpp2.spec b/commoncpp2.spec index c704648..f42304b 100644 --- a/commoncpp2.spec +++ b/commoncpp2.spec @@ -6,6 +6,7 @@ License: GPLv2+ with exceptions Group: System Environment/Libraries Source0: http://www.gnutelephony.org/dist/tarballs/commoncpp2-%{version}.tar.gz URL: http://www.gnu.org/software/commoncpp/ +Patch0: commoncpp2-1.7.3-gcc44.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libxml2-devel, zlib-devel, doxygen @@ -32,6 +33,7 @@ to develop programs that use the %{name} library. %prep %setup -q +%patch0 -p1 %build %configure \