diff --git a/libsigc++2-gcc46.patch b/libsigc++2-gcc46.patch new file mode 100644 index 0000000..b9a505b --- /dev/null +++ b/libsigc++2-gcc46.patch @@ -0,0 +1,20 @@ +commit faabe1f90c142a5ea836884a04c0eef250e69f94 +Author: Kalev Lember +Date: Fri Feb 4 12:17:05 2011 +0200 + + Fix the build with GCC 4.6 + + * sigc++/signal_base.h: Include for size_t. + +diff --git a/sigc++/signal_base.h b/sigc++/signal_base.h +index 1638642..e43bd5e 100644 +--- a/sigc++/signal_base.h ++++ b/sigc++/signal_base.h +@@ -21,6 +21,7 @@ + #ifndef _SIGC_SIGNAL_BASE_H_ + #define _SIGC_SIGNAL_BASE_H_ + ++#include + #include + #include + #include diff --git a/libsigc++2.changes b/libsigc++2.changes index 939164a..dbd8c13 100644 --- a/libsigc++2.changes +++ b/libsigc++2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Mar 16 08:57:51 UTC 2011 - ismail@namtrac.org + +- Add libsigc++2-gcc46.patch: Patch from upstream + to fix compilation with gcc 4.6 + ------------------------------------------------------------------- Mon Oct 11 19:53:12 CEST 2010 - vuntz@opensuse.org diff --git a/libsigc++2.spec b/libsigc++2.spec index 58cd379..7980e1d 100644 --- a/libsigc++2.spec +++ b/libsigc++2.spec @@ -30,6 +30,8 @@ Summary: Typesafe Signal Framework for C++ Url: http://libsigc.sourceforge.net/ Source: %{_name}-%{version}.tar.bz2 Source99: baselibs.conf +# PATCH-FIX-UPSTREAM libsigc++2-gcc46.patch idoenmez@suse.de -- Fix compilation with gcc 4.6 +Patch0: libsigc++2-gcc46.patch AutoReqProv: on BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -73,6 +75,7 @@ of use unmatched by other C++ callback libraries. %prep %setup -q -n %{_name}-%{version} +%patch0 -p1 %build # FIXME: Cannot autoreconf, bad templates: