diff --git a/clamav-gcc47.patch b/clamav-gcc47.patch new file mode 100644 index 0000000..89beae1 --- /dev/null +++ b/clamav-gcc47.patch @@ -0,0 +1,12 @@ +Index: clamav-0.97.3/libclamav/c++/llvm/lib/ExecutionEngine/JIT/Intercept.cpp +=================================================================== +--- clamav-0.97.3.orig/libclamav/c++/llvm/lib/ExecutionEngine/JIT/Intercept.cpp ++++ clamav-0.97.3/libclamav/c++/llvm/lib/ExecutionEngine/JIT/Intercept.cpp +@@ -15,6 +15,7 @@ + // + //===----------------------------------------------------------------------===// + ++#include + #include "JIT.h" + #include "llvm/Support/ErrorHandling.h" + #include "llvm/System/DynamicLibrary.h" diff --git a/clamav.changes b/clamav.changes index b1648a3..9f023ad 100644 --- a/clamav.changes +++ b/clamav.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Mar 17 19:36:17 UTC 2012 - dimstar@opensuse.org + +- Add clamav-gcc47.patch: Fix build with gcc 4.7. + ------------------------------------------------------------------- Sat Mar 17 14:18:48 UTC 2012 - toganm@opensuse.org diff --git a/clamav.spec b/clamav.spec index 4e9fb1a..4ee4f3b 100644 --- a/clamav.spec +++ b/clamav.spec @@ -61,6 +61,7 @@ Source4: clamav-rpmlintrc Source5: clamav-rcmilter Patch1: clamav-conf.patch Patch2: clamav-sles9.patch +Patch3: clamav-gcc47.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -129,6 +130,7 @@ Authors: # SLES9's libmilter doesn't have smfi_insheader() %patch2 %endif +%patch3 -p1 %build %if 0%{?suse_version} >= 1010