forked from mirrors/nixpkgs
fcgi: builds with newer gcc
svn path=/nixpkgs/trunk/; revision=28473
This commit is contained in:
parent
5a70c2dca8
commit
8d0fe0e19b
|
@ -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/;
|
||||
|
|
12
pkgs/development/libraries/fcgi/gcc-4.4.diff
Normal file
12
pkgs/development/libraries/fcgi/gcc-4.4.diff
Normal 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;
|
Loading…
Reference in a new issue