[package] update cgilib to 0.7 (#5367)
[openwrt/svn-archive/archive.git] / libs / cgilib / patches / 300-cpp_bugfix.patch
index 48ff7de0419342b03ef244d134f848b8302b9c3c..c06f81612391896614608f9d76ec372c0de78f5a 100644 (file)
@@ -1,9 +1,8 @@
-diff -Nur cgilib-0.5.orig/cgi.h cgilib-0.5/cgi.h
---- cgilib-0.5.orig/cgi.h      2008-01-03 18:02:08.000000000 +0100
-+++ cgilib-0.5/cgi.h   2008-01-03 18:02:31.000000000 +0100
-@@ -20,6 +20,10 @@
- #ifndef _CGI_H_
- #define _CGI_H_
+--- a/cgi.h
++++ b/cgi.h
+@@ -24,6 +24,10 @@
+ extern "C" {
+ #endif
  
 +#ifdef __cplusplus
 +extern "C" {
@@ -12,9 +11,9 @@ diff -Nur cgilib-0.5.orig/cgi.h cgilib-0.5/cgi.h
  typedef struct var_s {
        char    *name,
                *value;
-@@ -112,4 +116,8 @@
-  */
- void cgiFree (s_cgi *parms);
+@@ -146,4 +150,8 @@ char *cgiEscape (char *string);
+ extern }
+ #endif
  
 +#ifdef __cplusplus
 +} /* end of extern "C" */