new file mode 100644
@@ -0,0 +1,16 @@
+LICENSE = "Open Market"
+DESCRIPTION = "Fast CGI backend (web server to CGI handler) library"
+
+inherit autotools pkgconfig auto-package-utils auto-package-libs
+
+SRC_URI = "http://www.fastcgi.com/dist/fcgi-${PV}.tar.gz \
+ file://link-against-math.patch \
+ file://cstdio.patch"
+
+S= "${SRCDIR}/fcgi-${PV}"
+
+AUTO_PACKAGE_UTILS = "cgi-fcgi"
+AUTO_PACKAGE_LIBS = "fcgi"
+
+PARALLEL_MAKE=""
+
new file mode 100644
@@ -0,0 +1 @@
+2329404159e8b8315e524b9eaf1de763202c6e6a fcgi-2.4.0.tar.gz
new file mode 100644
@@ -0,0 +1,12 @@
+Index: fcgi-2.4.0/libfcgi/fcgio.cpp
+===================================================================
+--- fcgi-2.4.0.orig/libfcgi/fcgio.cpp 2009-09-16 23:20:20.504735309 +0200
++++ fcgi-2.4.0/libfcgi/fcgio.cpp 2009-09-16 23:20:34.325635844 +0200
+@@ -23,6 +23,7 @@
+ #endif
+
+ #include <limits.h>
++#include <cstdio>
+ #include "fcgio.h"
+
+ using std::streambuf;
new file mode 100644
@@ -0,0 +1,26 @@
+Need to link against the C math library (-lm) at least for uclibc.
+
+Index: fcgi-2.4.0/cgi-fcgi/Makefile.am
+===================================================================
+--- fcgi-2.4.0.orig/cgi-fcgi/Makefile.am 2008-07-09 20:54:56.000000000 +0200
++++ fcgi-2.4.0/cgi-fcgi/Makefile.am 2008-07-09 20:55:12.000000000 +0200
+@@ -11,5 +11,5 @@
+ 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 2008-07-09 20:54:56.000000000 +0200
++++ fcgi-2.4.0/examples/Makefile.am 2008-07-09 20:55:11.000000000 +0200
+@@ -21,7 +21,7 @@
+ 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
From: Christian Sørensen <christian.braunersorensen@prevas.dk> --- recipes/fastcgi/fastcgi_2.4.0.oe | 16 +++++++++++++++ recipes/fastcgi/fastcgi_2.4.0.oe.sig | 1 + recipes/fastcgi/files/cstdio.patch | 12 ++++++++++++ recipes/fastcgi/files/link-against-math.patch | 26 +++++++++++++++++++++++++ 4 files changed, 55 insertions(+) create mode 100644 recipes/fastcgi/fastcgi_2.4.0.oe create mode 100644 recipes/fastcgi/fastcgi_2.4.0.oe.sig create mode 100644 recipes/fastcgi/files/cstdio.patch create mode 100644 recipes/fastcgi/files/link-against-math.patch