patch for gcc44

svn path=/nixpkgs/branches/stdenv-updates/; revision=19503
This commit is contained in:
Armijn Hemel 2010-01-17 21:34:55 +00:00
parent 3189e7a393
commit e68a8a9575
2 changed files with 13 additions and 0 deletions

View File

@ -7,6 +7,8 @@ stdenv.mkDerivation {
sha256 = "0h8zjh38n2wfz7jld0jz6a09y66dbsd2jhm4f2024qfgcmxcabj6"; sha256 = "0h8zjh38n2wfz7jld0jz6a09y66dbsd2jhm4f2024qfgcmxcabj6";
}; };
buildInputs = [ qt4 ]; buildInputs = [ qt4 ];
patches = [./qtscriptgenerator.gcc-4.4.patch];
# Why isn't the author providing proper Makefile or a CMakeLists.txt ? # Why isn't the author providing proper Makefile or a CMakeLists.txt ?
buildPhase = '' buildPhase = ''

View File

@ -0,0 +1,11 @@
diff -uNr generator.orig/parser/rpp/pp.h generator/parser/rpp/pp.h
--- qtscriptgenerator-src-0.1.0/generator.orig/parser/rpp/pp.h 2008-12-05 11:01:44.000000000 +0100
+++ qtscriptgenerator-src-0.1.0/generator/parser/rpp/pp.h 2008-12-13 10:42:22.000000000 +0100
@@ -30,6 +30,7 @@
#include <cctype>
#include <fcntl.h>
+#include <cstdio>
#ifdef HAVE_MMAP
# include <sys/mman.h>