summaryrefslogtreecommitdiffstats
path: root/package/libfcgi
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2012-04-30 21:38:14 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2012-04-30 21:38:14 +0200
commitae63ca8f4782b91fd9e41316bfb79a43f54f5cd2 (patch)
tree86e3707674f8d9ff0d0dc005d9e810c4bec4a278 /package/libfcgi
parenta389ebb12c256f210c0a82bf594fcd5c0efa096a (diff)
downloadbuildroot-novena-ae63ca8f4782b91fd9e41316bfb79a43f54f5cd2.tar.gz
buildroot-novena-ae63ca8f4782b91fd9e41316bfb79a43f54f5cd2.zip
libfcgi: fix build with C++ support and gcc >= 4.4
As reported on the ml by Rico Bachmann. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/libfcgi')
-rw-r--r--package/libfcgi/libfcgi-eof.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/libfcgi/libfcgi-eof.patch b/package/libfcgi/libfcgi-eof.patch
new file mode 100644
index 000000000..e7314265a
--- /dev/null
+++ b/package/libfcgi/libfcgi-eof.patch
@@ -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"
+