libfcgi: fix build with C++ support and gcc >= 4.4
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 30 Apr 2012 19:38:14 +0000 (21:38 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 30 Apr 2012 19:38:14 +0000 (21:38 +0200)
As reported on the ml by Rico Bachmann.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/libfcgi/libfcgi-eof.patch [new file with mode: 0644]

diff --git a/package/libfcgi/libfcgi-eof.patch b/package/libfcgi/libfcgi-eof.patch
new file mode 100644 (file)
index 0000000..e731426
--- /dev/null
@@ -0,0 +1,24 @@
+[PATCH] fix build with C++ support and gcc >= 4.4
+
+EOF is defined in stdio, so ensure it is included.
+
+Based on similar patch by Markus Rothe:
+http://comments.gmane.org/gmane.comp.web.fastcgi.devel/3205
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+---
+ libfcgi/fcgio.cpp |    1 +
+ 1 file changed, 1 insertion(+)
+
+Index: fcgi-2.4.0/libfcgi/fcgio.cpp
+===================================================================
+--- fcgi-2.4.0.orig/libfcgi/fcgio.cpp
++++ fcgi-2.4.0/libfcgi/fcgio.cpp
+@@ -22,6 +22,7 @@
+ #define DLLAPI  __declspec(dllexport)
+ #endif
++#include <cstdio>
+ #include <limits.h>
+ #include "fcgio.h"