diff --git a/Sming/Components/.patches/multipart-parser.patch b/Sming/Components/.patches/multipart-parser.patch index ee39f3677f..0ff4ade666 100644 --- a/Sming/Components/.patches/multipart-parser.patch +++ b/Sming/Components/.patches/multipart-parser.patch @@ -1,13 +1,25 @@ diff --git a/multipart_parser.c b/multipart_parser.c -index 981dabb..afbc393 100644 +index 981dabb..014f7d0 100644 --- a/multipart_parser.c +++ b/multipart_parser.c -@@ -1,4 +1,4 @@ +@@ -1,13 +1,13 @@ -/* Based on node-formidable by Felix Geisendörfer +/* Based on node-formidable by Felix Geisendörfer * Igor Afonov - afonov@gmail.com - 2012 * MIT License - http://www.opensource.org/licenses/mit-license.php */ + + #include "multipart_parser.h" + +-#include +-#include +-#include ++#ifndef tolower ++ int tolower (int __c); ++#endif + + static void multipart_log(const char * format, ...) + { @@ -43,20 +43,6 @@ do { \ #define LF 10 #define CR 13 @@ -88,12 +100,22 @@ index 981dabb..afbc393 100644 multipart_log("s_part_data_final_hyphen"); if (c == '-') { diff --git a/multipart_parser.h b/multipart_parser.h -index 05429d7..f0f82ab 100644 +index 05429d7..3b67a3f 100644 --- a/multipart_parser.h +++ b/multipart_parser.h -@@ -13,12 +13,12 @@ extern "C" - #include - #include +@@ -1,4 +1,4 @@ +-/* Based on node-formidable by Felix Geisendörfer ++/* Based on node-formidable by Felix Geisendörfer + * Igor Afonov - afonov@gmail.com - 2012 + * MIT License - http://www.opensource.org/licenses/mit-license.php + */ +@@ -10,15 +10,14 @@ extern "C" + { + #endif + +-#include +-#include ++#include -typedef struct multipart_parser multipart_parser; -typedef struct multipart_parser_settings multipart_parser_settings; @@ -108,7 +130,7 @@ index 05429d7..f0f82ab 100644 struct multipart_parser_settings { multipart_data_cb on_header_field; -@@ -31,15 +31,29 @@ struct multipart_parser_settings { +@@ -31,15 +30,29 @@ struct multipart_parser_settings { multipart_notify_cb on_body_end; };