3
0
Fork 0
forked from mirrors/nixpkgs

fcgi: builds with newer gcc

svn path=/nixpkgs/trunk/; revision=28473
This commit is contained in:
Yury G. Kudryashov 2011-08-10 22:16:48 +00:00
parent 5a70c2dca8
commit 8d0fe0e19b
2 changed files with 15 additions and 1 deletions

View file

@ -4,10 +4,12 @@ stdenv.mkDerivation rec {
name = "fcgi-2.4.0";
src = fetchurl {
url = http://www.fastcgi.com/dist/fcgi.tar.gz;
url = "http://www.fastcgi.com/dist/${name}.tar.gz";
sha256 = "1f857wnl1d6jfrgfgfpz3zdaj8fch3vr13mnpcpvy8bang34bz36";
};
patches = [ ./gcc-4.4.diff ];
meta = {
description = "FastCGI is a language independent, scalable, open extension to CG";
homepage = http://www.fastcgi.com/;

View file

@ -0,0 +1,12 @@
diff --git a/libfcgi/fcgio.cpp b/libfcgi/fcgio.cpp
index 95e28ca..a7eda0e 100644
--- a/libfcgi/fcgio.cpp
+++ b/libfcgi/fcgio.cpp
@@ -23,6 +23,7 @@
#endif
#include <limits.h>
+#include <cstdio>
#include "fcgio.h"
using std::streambuf;