ctl: fix build with gcc47

This commit is contained in:
Vladimír Čunát 2013-03-19 22:34:33 +01:00
parent 907602d5b8
commit 111c8db500
2 changed files with 19 additions and 4 deletions

View File

@ -8,12 +8,12 @@ stdenv.mkDerivation {
sha256 = "16lzgbpxdyhykdwndj1i9vx3h4bfkxqqcrvasvgg70gb5raxj0mj";
};
patches = [ ./patch.patch ];
patches = [ ./patch.patch ./gcc47.patch ];
propagatedBuildInputs = [ ilmbase ];
configureFlags = "--with-ilmbase-prefix=${ilmbase}";
#configurePhase = "
#export CXXFLAGS=\"-I${ilmbase}/include -L${ilmbase}/lib\"
#echo $CXXFLAGS

View File

@ -0,0 +1,15 @@
https://bugs.gentoo.org/426368
IlmCtl/CtlInterpreter.cpp | 1 +
1 file changed, 1 insertion(+)
--- a/IlmCtl/CtlInterpreter.cpp
+++ b/IlmCtl/CtlInterpreter.cpp
@@ -64,6 +64,7 @@
#include <fstream>
#include <algorithm>
#include <cassert>
+#include <unistd.h>
#ifdef WIN32
#include <io.h>