summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhang Le <r0bertz@gentoo.org>2008-12-05 23:21:46 +0800
committerZhang Le <r0bertz@gentoo.org>2008-12-05 23:21:46 +0800
commit8ae1f19d26de96e2f8077cca8c47c493e876c082 (patch)
tree1cfc8580b4693931da07d49759949cc5ca2db1c4 /dev-libs
parentpatches in patchset tarball won't be applied, -_- (diff)
downloadloongson-8ae1f19d26de96e2f8077cca8c47c493e876c082.tar.gz
loongson-8ae1f19d26de96e2f8077cca8c47c493e876c082.tar.bz2
loongson-8ae1f19d26de96e2f8077cca8c47c493e876c082.zip
added fcgi and fcgi-gcc4.4.patch
Signed-off-by: Zhang Le <r0bertz@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/fcgi/ChangeLog128
-rw-r--r--dev-libs/fcgi/Manifest18
-rw-r--r--dev-libs/fcgi/fcgi-2.4.0-r2.ebuild54
-rw-r--r--dev-libs/fcgi/files/fcgi-2.4.0-Makefile.patch24
-rw-r--r--dev-libs/fcgi/files/fcgi-2.4.0-clientdata-pointer.patch96
-rw-r--r--dev-libs/fcgi/files/fcgi-2.4.0-html-updates.patch65
-rw-r--r--dev-libs/fcgi/files/fcgi-gcc4.4.patch12
-rw-r--r--dev-libs/fcgi/metadata.xml11
8 files changed, 408 insertions, 0 deletions
diff --git a/dev-libs/fcgi/ChangeLog b/dev-libs/fcgi/ChangeLog
new file mode 100644
index 0000000..925e279
--- /dev/null
+++ b/dev-libs/fcgi/ChangeLog
@@ -0,0 +1,128 @@
+# ChangeLog for dev-libs/fcgi
+# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/fcgi/ChangeLog,v 1.36 2008/08/06 07:07:48 ulm Exp $
+
+ 06 Aug 2008; Ulrich Mueller <ulm@gentoo.org> metadata.xml:
+ Add USE flag description to metadata wrt GLEP 56.
+
+ 12 Jan 2008; Fabian Groffen <grobian@gentoo.org> fcgi-2.4.0.ebuild,
+ fcgi-2.4.0-r2.ebuild:
+ Dropped ppc-macos keyword, see you in prefix
+
+ 11 Nov 2007; Samuli Suominen <drac@gentoo.org> fcgi-2.4.0-r2.ebuild:
+ amd64 stable wrt #198194
+
+ 05 Nov 2007; Hans de Graaff <graaff@gentoo.org> metadata.xml,
+ -fcgi-2.4.0-r1.ebuild:
+ Remove unneeded version
+
+ 05 Nov 2007; Hans de Graaff <graaff@gentoo.org> metadata.xml:
+ Grab package.
+
+ 04 Nov 2007; Christian Heim <phreak@gentoo.org> metadata.xml:
+ Assigning to maintainer-needed.
+
+ 21 Jul 2007; Tom Gall <tgall@gentoo.org> fcgi-2.4.0-r2.ebuild:
+ stable on ppc64
+
+ 14 Jul 2007; Raúl Porcel <armin76@gentoo.org> fcgi-2.4.0-r2.ebuild:
+ alpha/x86 stable
+
+ 14 May 2007; Thilo Bangert <bangert@gentoo.org> metadata.xml:
+ add <herd>no-herd</herd>
+
+ 08 May 2007; Fabian Groffen <grobian@gentoo.org> ChangeLog:
+ Dropped ppc-macos keyword, see you in prefix
+
+ 16 Apr 2007; Gustavo Zacarias <gustavoz@gentoo.org> fcgi-2.4.0-r2.ebuild:
+ Stable on sparc
+
+ 06 Apr 2007; Tobias Scherbaum <dertobi123@gentoo.org>
+ fcgi-2.4.0-r2.ebuild:
+ ppc stable
+
+ 18 Mar 2007; Jeroen Roovers <jer@gentoo.org> fcgi-2.4.0-r2.ebuild:
+ Stable for HPPA (bug #168582).
+
+*fcgi-2.4.0-r2 (14 Jan 2007)
+
+ 14 Jan 2007; Christian Heim <phreak@gentoo.org>
+ +files/fcgi-2.4.0-html-updates.patch, +fcgi-2.4.0-r2.ebuild:
+ Fixing up the ebuild, hopefully fixing the compilation in #157821.
+
+ 04 Nov 2006; Christian Heim <phreak@gentoo.org> fcgi-2.4.0-r1.ebuild:
+ Fixing #153651 (thanks to Tobias Scherbaum for reporting it), cleaning up
+ the ebuild.
+
+ 21 Oct 2006; Thomas Cort <tcort@gentoo.org> fcgi-2.4.0-r1.ebuild:
+ Stable on alpha.
+
+ 05 Sep 2006; Thomas Cort <tcort@gentoo.org> fcgi-2.4.0-r1.ebuild:
+ Added ~alpha keyword.
+
+*fcgi-2.4.0-r1 (05 Aug 2006)
+
+ 05 Aug 2006; Christian Heim <phreak@gentoo.org>
+ +files/fcgi-2.4.0-Makefile.patch,
+ +files/fcgi-2.4.0-clientdata-pointer.patch, +metadata.xml,
+ +fcgi-2.4.0-r1.ebuild:
+ Revision bump. Fixing build issues I encountered while compiling on uclibc.
+
+ 13 Jul 2006; Aron Griffis <agriffis@gentoo.org> fcgi-2.4.0.ebuild:
+ Mark 2.4.0 stable on ia64. #138323
+
+ 21 May 2006; Markus Rothe <corsair@gentoo.org> fcgi-2.4.0.ebuild:
+ Stable on ppc64
+
+ 22 Apr 2006; Diego Pettenò <flameeyes@gentoo.org> fcgi-2.4.0.ebuild:
+ Add ~x86-fbsd keyword.
+
+ 30 Mar 2006; Aron Griffis <agriffis@gentoo.org> fcgi-2.4.0.ebuild:
+ Mark 2.4.0 ~ia64
+
+ 17 Dec 2005; Markus Rothe <corsair@gentoo.org> fcgi-2.4.0.ebuild:
+ Added ~ppc64
+
+ 13 Nov 2005; Jason Wever <weeve@gentoo.org> fcgi-2.4.0.ebuild:
+ Stable on SPARC.
+
+ 27 Aug 2005; Aaron Walker <ka0ttic@gentoo.org> fcgi-2.4.0.ebuild:
+ Use econf instead of calling ./configure directly so config.{sub,guess} get
+ updated. Added ~mips.
+
+ 22 Apr 2005; Simon Stelling <blubb@gentoo.org> fcgi-2.4.0.ebuild:
+ stable on amd64
+
+ 23 Mar 2005; Ferris McCormick <fmccor@gentoo.org> fcgi-2.4.0.ebuild:
+ Add ~sparc keyword, Bug 86374. Package at least builds, so available for
+ testing.
+
+ 18 Dec 2004; Simon Stelling <blubb@gentoo.org> fcgi-2.4.0.ebuild:
+ added ~amd64
+
+ 28 Nov 2004; Joseph Jezak <josejx@gentoo.org> fcgi-2.4.0.ebuild:
+ Marked ppc stable.
+
+ 22 Nov 2004; Nick Dimiduk <ndimiduk@gentoo.org> fcgi-2.4.0.ebuild:
+ Keyworded ~ppc-macos
+
+ 08 Nov 2004; Matthew Kenendy <mkennedy@gentoo.org> fcgi-2.4.0.ebuild:
+ Resolves Bug #60956 C++ support not installed.
+
+ 02 Sep 2004; David Holm <dholm@gentoo.org> fcgi-2.4.0.ebuild:
+ Added to ~ppc.
+
+ 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org> fcgi-2.4.0.ebuild:
+ virtual/glibc -> virtual/libc
+
+ 14 Mar 2004; Michael Sterrett <mr_bones_@gentoo.org> fcgi-2.4.0.ebuild:
+ Don't assign default to S; header fix
+
+ 26 Nov 2003; <mkennedy@gentoo.org> fcgi-2.4.0.ebuild:
+ marking x86 stable
+
+*fcgi-2.4.0 (04 Sep 2003)
+
+ 04 Sep 2003; Matthew Kennedy <mkennedy@gentoo.org> :
+ Initial import.
+
diff --git a/dev-libs/fcgi/Manifest b/dev-libs/fcgi/Manifest
new file mode 100644
index 0000000..5bb9fb1
--- /dev/null
+++ b/dev-libs/fcgi/Manifest
@@ -0,0 +1,18 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX fcgi-2.4.0-Makefile.patch 846 RMD160 dc3beead1d6431eca49e9635a05b4b62cfbf0cd9 SHA1 80dee3eb6f4b2b461083bc9607ac4d64bbbe1a5d SHA256 3d01cc53a4eb63d416ee6cdcd29e099d759947ae200c4062fcc3cfd823849f62
+AUX fcgi-2.4.0-clientdata-pointer.patch 3203 RMD160 fb6e7341cd162640665c4c2b65784bff0889e1f1 SHA1 995b4f4046a3374ee7e75333193b5b1c72a69280 SHA256 27936406b5fcb13096bbdd80ee7eb0cf262e5c2b983e79e41d17a3cd17387683
+AUX fcgi-2.4.0-html-updates.patch 2527 RMD160 465ee1b04f820237d70ff9f39f37ef9473f4c51b SHA1 94b13aa049d9c331993b2510fd29bd2109269ba4 SHA256 df8b2eb4c017fedf6f27a5650e2f4f5636e66ec7d02d20a50282edbc8d636c69
+DIST fcgi-2.4.0.tar.gz 468682 RMD160 df5c01b197bc72fca7abee184a34ec14253dd0f0 SHA1 2329404159e8b8315e524b9eaf1de763202c6e6a SHA256 66fc45c6b36a21bf2fbbb68e90f780cc21a9da1fffbae75e76d2b4402d3f05b9
+EBUILD fcgi-2.4.0-r2.ebuild 1225 RMD160 3f588320cab24f34306f1cf1352c42bd677320e7 SHA1 1abbf2d67f2c6f159ba46eb8d594f23dc53d192a SHA256 ff9b27182b15495b8a063f7895a90ecc194e7cb6cf9926c278fe2d36caef296f
+EBUILD fcgi-2.4.0.ebuild 800 RMD160 1a717221c4d9bc1466687bd2d810fd674d292b3c SHA1 06ca5ada4821af486b3c26e75296870f9183390b SHA256 03160f98f7819d0b11b02a79a5f3ab80c8473a76505582ed80b931643c6c72b0
+MISC ChangeLog 4194 RMD160 44d3ec6fb2e43e66c213bd208bc17dd947997d88 SHA1 d6aed9a8d4f474de1453c24fb9bd03460ef72006 SHA256 d5d1273b7950ca1c1ae00c5b7f56fc18577fa9a46ba9e98ce127fdee44b988f1
+MISC metadata.xml 289 RMD160 a2df0934ff577deccfcf7945371f6591d76985ff SHA1 fcea6dd24cfb01275e644fb085cb411c11ede40d SHA256 b266358f6f6f864635aa425c956c4067bbfff9bebeaa6d5a2b7480adbdace5fa
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.9 (GNU/Linux)
+
+iEUEARECAAYFAkiZTdUACgkQOeoy/oIi7uyo3gCY/tP8AvBfQUH0X9cqr0xtjsoJ
+LgCfV14r+VDG8/RGrGZSzmUbholP3uc=
+=Ib11
+-----END PGP SIGNATURE-----
diff --git a/dev-libs/fcgi/fcgi-2.4.0-r2.ebuild b/dev-libs/fcgi/fcgi-2.4.0-r2.ebuild
new file mode 100644
index 0000000..4c5cca2
--- /dev/null
+++ b/dev-libs/fcgi/fcgi-2.4.0-r2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/fcgi/fcgi-2.4.0-r2.ebuild,v 1.9 2008/01/12 20:26:52 grobian Exp $
+
+inherit eutils autotools multilib
+
+DESCRIPTION="FastCGI Developer's Kit"
+HOMEPAGE="http://www.fastcgi.com/"
+SRC_URI="http://www.fastcgi.com/dist/${P}.tar.gz"
+
+LICENSE="FastCGI"
+SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd"
+IUSE="html"
+
+DEPEND=""
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-Makefile.patch"
+ epatch "${FILESDIR}/${P}-clientdata-pointer.patch"
+ epatch "${FILESDIR}/${P}-html-updates.patch"
+ epatch "${FILESDIR}/${PN}-gcc4.4.patch"
+
+ eautoreconf
+}
+
+src_compile() {
+ econf || die "econf failed"
+ make || die "make failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install LIBRARY_PATH="${D}/usr/$(get_libdir)" || die
+
+ dodoc README
+
+ # install the manpages into the right place
+ doman doc/*.[13]
+
+ # Only install the html documentation if USE=html
+ if use html ; then
+ dohtml "${S}"/doc/*/*
+ insinto /usr/share/doc/${PF}/html
+ doins -r "${S}/images"
+ fi
+
+ # install examples in the right place
+ insinto /usr/share/doc/${PF}/examples
+ doins "${S}/examples/"*.c
+}
diff --git a/dev-libs/fcgi/files/fcgi-2.4.0-Makefile.patch b/dev-libs/fcgi/files/fcgi-2.4.0-Makefile.patch
new file mode 100644
index 0000000..dad4cd6
--- /dev/null
+++ b/dev-libs/fcgi/files/fcgi-2.4.0-Makefile.patch
@@ -0,0 +1,24 @@
+Index: fcgi-2.4.0/cgi-fcgi/Makefile.am
+===================================================================
+--- fcgi-2.4.0.orig/cgi-fcgi/Makefile.am
++++ fcgi-2.4.0/cgi-fcgi/Makefile.am
+@@ -11,5 +11,5 @@ INCLUDE_FILES = $(INCLUDEDIR)/fastcgi.
+ LIBDIR = ../libfcgi
+ LIBFCGI = $(LIBDIR)/libfcgi.la
+
+-LDADD = $(LIBFCGI)
++LDADD = $(LIBFCGI) -lm
+ cgi_fcgi_SOURCES = $(INCLUDE_FILES) cgi-fcgi.c
+Index: fcgi-2.4.0/examples/Makefile.am
+===================================================================
+--- fcgi-2.4.0.orig/examples/Makefile.am
++++ fcgi-2.4.0/examples/Makefile.am
+@@ -21,7 +21,7 @@ INCLUDE_FILES = $(INCLUDEDIR)/fastcgi.
+ LIBDIR = ../libfcgi
+ LIBFCGI = $(LIBDIR)/libfcgi.la
+
+-LDADD = $(LIBFCGI)
++LDADD = $(LIBFCGI) -lm
+
+ echo_SOURCES = $(INCLUDE_FILES) echo.c
+ echo_x_SOURCES = $(INCLUDE_FILES) echo-x.c
diff --git a/dev-libs/fcgi/files/fcgi-2.4.0-clientdata-pointer.patch b/dev-libs/fcgi/files/fcgi-2.4.0-clientdata-pointer.patch
new file mode 100644
index 0000000..ba47937
--- /dev/null
+++ b/dev-libs/fcgi/files/fcgi-2.4.0-clientdata-pointer.patch
@@ -0,0 +1,96 @@
+Index: fcgi-2.4.0/cgi-fcgi/cgi-fcgi.c
+===================================================================
+--- fcgi-2.4.0.orig/cgi-fcgi/cgi-fcgi.c
++++ fcgi-2.4.0/cgi-fcgi/cgi-fcgi.c
+@@ -21,6 +21,7 @@ static const char rcsid[] = "$Id: cgi-fc
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <sys/types.h>
+
+ #include "fcgi_config.h"
+
+@@ -145,7 +146,7 @@ static FCGI_BeginRequestBody MakeBeginRe
+
+
+ static int bytesToRead; /* number of bytes to read from Web Server */
+-static int appServerSock = -1; /* Socket connected to FastCGI application,
++static size_t appServerSock = -1; /* Socket connected to FastCGI application,
+ * used by AppServerReadHandler and
+ * AppServerWriteHandler. */
+ static Buffer fromAS; /* Bytes read from the FCGI application server. */
+@@ -640,7 +641,7 @@ static int ParseArgs(int argc, char *arg
+ }
+ if((av[ac] = (char *)malloc(strlen(tp1)+1)) == NULL) {
+ fprintf(stderr, "Cannot allocate %d bytes\n",
+- strlen(tp1)+1);
++ (int)strlen(tp1)+1);
+ exit(-1);
+ }
+ strcpy(av[ac++], tp1);
+Index: fcgi-2.4.0/examples/threaded.c
+===================================================================
+--- fcgi-2.4.0.orig/examples/threaded.c
++++ fcgi-2.4.0/examples/threaded.c
+@@ -24,7 +24,7 @@ static int counts[THREAD_COUNT];
+
+ static void *doit(void *a)
+ {
+- int rc, i, thread_id = (int)a;
++ size_t rc, i, thread_id = (size_t)a;
+ pid_t pid = getpid();
+ FCGX_Request request;
+ char *server_name;
+@@ -53,7 +53,7 @@ static void *doit(void *a)
+ "<h1>FastCGI Hello! (multi-threaded C, fcgiapp library)</h1>"
+ "Thread %d, Process %ld<p>"
+ "Request counts for %d threads running on host <i>%s</i><p><code>",
+- thread_id, pid, THREAD_COUNT, server_name ? server_name : "?");
++ (int)thread_id, pid, THREAD_COUNT, server_name ? server_name : "?");
+
+ sleep(2);
+
+@@ -71,7 +71,7 @@ static void *doit(void *a)
+
+ int main(void)
+ {
+- int i;
++ size_t i;
+ pthread_t id[THREAD_COUNT];
+
+ FCGX_Init();
+Index: fcgi-2.4.0/include/fcgios.h
+===================================================================
+--- fcgi-2.4.0.orig/include/fcgios.h
++++ fcgi-2.4.0/include/fcgios.h
+@@ -93,7 +93,7 @@ extern "C" {
+ # if defined(__STDC__) || defined(__cplusplus)
+ typedef void *ClientData;
+ # else
+- typedef int *ClientData;
++ typedef size_t *ClientData;
+ # endif /* __STDC__ */
+ #define _CLIENTDATA
+ #endif
+Index: fcgi-2.4.0/libfcgi/os_unix.c
+===================================================================
+--- fcgi-2.4.0.orig/libfcgi/os_unix.c
++++ fcgi-2.4.0/libfcgi/os_unix.c
+@@ -1155,7 +1155,7 @@ int OS_Accept(int listen_sock, int fail_
+
+ for (;;) {
+ do {
+-#ifdef HAVE_SOCKLEN
++#ifdef HAVE_SYS_SOCKET_H
+ socklen_t len = sizeof(sa);
+ #else
+ int len = sizeof(sa);
+@@ -1255,7 +1255,7 @@ int OS_IsFcgi(int sock)
+ struct sockaddr_in in;
+ struct sockaddr_un un;
+ } sa;
+-#ifdef HAVE_SOCKLEN
++#ifdef HAVE_SYS_SOCKET_H
+ socklen_t len = sizeof(sa);
+ #else
+ int len = sizeof(sa);
diff --git a/dev-libs/fcgi/files/fcgi-2.4.0-html-updates.patch b/dev-libs/fcgi/files/fcgi-2.4.0-html-updates.patch
new file mode 100644
index 0000000..ca10a6a
--- /dev/null
+++ b/dev-libs/fcgi/files/fcgi-2.4.0-html-updates.patch
@@ -0,0 +1,65 @@
+Index: fcgi-2.4.0/doc/fcgi-devel-kit.htm
+===================================================================
+--- fcgi-2.4.0.orig/doc/fcgi-devel-kit.htm
++++ fcgi-2.4.0/doc/fcgi-devel-kit.htm
+@@ -19,7 +19,7 @@
+ </HEAD>
+ <BODY>
+ <P CLASS="c1">
+- <IMG BORDER="0" SRC="../images/fcgi-hd.gif" ALT="[[FastCGI]]"><BR CLEAR="all">
++ <IMG BORDER="0" SRC="images/fcgi-hd.gif" ALT="[[FastCGI]]"><BR CLEAR="all">
+ </P>
+ <H3 CLASS="c2">
+ FastCGI Developer&#39;s Kit
+Index: fcgi-2.4.0/doc/fcgi-java.htm
+===================================================================
+--- fcgi-2.4.0.orig/doc/fcgi-java.htm
++++ fcgi-2.4.0/doc/fcgi-java.htm
+@@ -20,7 +20,7 @@
+ </HEAD>
+ <BODY>
+ <DIV CLASS="c1">
+- <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="../images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
++ <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
+ </DIV>
+ <BR CLEAR="all">
+ <DIV CLASS="c1">
+Index: fcgi-2.4.0/doc/fcgi-perf.htm
+===================================================================
+--- fcgi-2.4.0.orig/doc/fcgi-perf.htm
++++ fcgi-2.4.0/doc/fcgi-perf.htm
+@@ -19,7 +19,7 @@
+ </HEAD>
+ <BODY>
+ <DIV CLASS="c1">
+- <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="../images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
++ <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
+ </DIV>
+ <BR CLEAR="all">
+ <DIV CLASS="c1">
+Index: fcgi-2.4.0/doc/fcgi-perl.htm
+===================================================================
+--- fcgi-2.4.0.orig/doc/fcgi-perl.htm
++++ fcgi-2.4.0/doc/fcgi-perl.htm
+@@ -19,7 +19,7 @@
+ </HEAD>
+ <BODY>
+ <DIV CLASS="c1">
+- <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="../images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
++ <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
+ </DIV>
+ <BR CLEAR="all">
+
+Index: fcgi-2.4.0/doc/fcgi-tcl.htm
+===================================================================
+--- fcgi-2.4.0.orig/doc/fcgi-tcl.htm
++++ fcgi-2.4.0/doc/fcgi-tcl.htm
+@@ -19,7 +19,7 @@
+ </HEAD>
+ <BODY>
+ <DIV CLASS="c1">
+- <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="../images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
++ <A HREF="http://fastcgi.com"><IMG BORDER="0" SRC="images/fcgi-hd.gif" ALT="[[FastCGI]]"></A>
+ </DIV>
+ <BR CLEAR="all">
+ <DIV CLASS="c1">
diff --git a/dev-libs/fcgi/files/fcgi-gcc4.4.patch b/dev-libs/fcgi/files/fcgi-gcc4.4.patch
new file mode 100644
index 0000000..3733fc9
--- /dev/null
+++ b/dev-libs/fcgi/files/fcgi-gcc4.4.patch
@@ -0,0 +1,12 @@
+diff --git a/include/fcgio.h b/include/fcgio.h
+index 20d222a..3d325d1 100644
+--- a/include/fcgio.h
++++ b/include/fcgio.h
+@@ -31,6 +31,7 @@
+ #define FCGIO_H
+
+ #include <iostream>
++#include <cstdio>
+
+ #include "fcgiapp.h"
+
diff --git a/dev-libs/fcgi/metadata.xml b/dev-libs/fcgi/metadata.xml
new file mode 100644
index 0000000..4d55ea2
--- /dev/null
+++ b/dev-libs/fcgi/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>graaff@gentoo.org</email>
+</maintainer>
+<use>
+ <flag name='html'>Install HTML documentation</flag>
+</use>
+</pkgmetadata>