added patch for gcc 4.7 issue.

This commit is contained in:
Richard M. Shaw 2012-01-05 15:02:42 -06:00
parent 31d9ad9c61
commit 33234cae37
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,11 @@
diff -Naur OpenImageIO-oiio-7b7590f.orig/src/include/strutil.h OpenImageIO-oiio-7b7590f/src/include/strutil.h
--- OpenImageIO-oiio-7b7590f.orig/src/include/strutil.h 2011-11-20 09:23:48.000000000 -0600
+++ OpenImageIO-oiio-7b7590f/src/include/strutil.h 2012-01-05 14:30:34.015046609 -0600
@@ -44,6 +44,7 @@
#include <string>
#include <cstring>
#include <map>
+#include <unistd.h>
#include "export.h"
#include "version.h"

View File

@ -17,6 +17,7 @@ Patch0: OpenImageIO-0.10.2-git_backports.patch
Patch1: OpenImageIO-0.10.0-atomic_test_fix.patch
Patch2: OpenImageIO-0.10.3-use_external_tbb.patch
Patch3: OpenImageIO-0.10.2-Z_BEST_COMPRESSION.patch
Patch4: OpenImageIO-0.10.4-gcc47_unistd_h.fix
BuildRequires: boost-devel glew-devel qt-devel OpenEXR-devel ilmbase-devel
BuildRequires: python2-devel txt2man
@ -65,6 +66,7 @@ Development files for package %{name}
%patch1 -p1 -b .atomic
%patch2 -p1 -b .tbb
%patch3 -p1 -b .zlib
%patch4 -p1 -b .gcc47
# Remove bundled pugixml
rm -f src/include/pugixml.hpp \