diff --git a/fcgi-2.4.0-gcc44_fixes.patch b/fcgi-2.4.0-gcc44_fixes.patch new file mode 100644 index 0000000..6c5cfe2 --- /dev/null +++ b/fcgi-2.4.0-gcc44_fixes.patch @@ -0,0 +1,11 @@ +diff -up fcgi-2.4.0/libfcgi/fcgio.cpp.gcc44_fixes fcgi-2.4.0/libfcgi/fcgio.cpp +--- fcgi-2.4.0/libfcgi/fcgio.cpp.gcc44_fixes 2002-02-24 21:12:22.000000000 +0100 ++++ fcgi-2.4.0/libfcgi/fcgio.cpp 2009-02-15 11:35:18.000000000 +0100 +@@ -23,6 +23,7 @@ + #endif + + #include ++#include + #include "fcgio.h" + + using std::streambuf; diff --git a/fcgi.spec b/fcgi.spec index 696461c..6c169dc 100644 --- a/fcgi.spec +++ b/fcgi.spec @@ -1,6 +1,6 @@ Name: fcgi Version: 2.4.0 -Release: 6%{?dist} +Release: 7%{?dist} Summary: FastCGI development kit Group: Development/Languages @@ -12,6 +12,7 @@ Patch0: fcgi-2.4.0-autotools.patch # Patch0 created with Source1 after patching Patch1 and Patch2 Patch1: fcgi-2.4.0-configure.in.patch Patch2: fcgi-2.4.0-Makefile.am-CPPFLAGS.patch +Patch3: fcgi-2.4.0-gcc44_fixes.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # for -perl @@ -47,6 +48,8 @@ The %{name}-perl package contains the perl bindings for fcgi. %prep %setup -q %patch0 -p1 +%patch3 -p1 -b .gcc44_fixes + # remove DOS End Of Line Encoding sed -i 's/\r//' doc/fastcgi-prog-guide/ch2c.htm # fix file permissions @@ -134,8 +137,10 @@ rm -rf $RPM_BUILD_ROOT %doc perl/ChangeLog perl/README perl/*.fpl - %changelog +* Sun Feb 15 2009 Till Maas - 2.4.0-7 +- Add missing #include to make it compile with gcc 4.4 + * Tue Oct 14 2008 Chris Weyl - 2.4.0-6 - package up the perl bindings in their own subpackage