Skip to content
Browse files

windows build fix

  • Loading branch information...
1 parent 606e1fc commit 1a6504fa96d5404f2dab4998ccc0d484fbc59e10 @garymd garymd committed
Showing with 19 additions and 1 deletion.
  1. +19 −1 ports/www/mongoose/source_All.patch
View
20 ports/www/mongoose/source_All.patch
@@ -1,6 +1,6 @@
diff -durN mongoose.orig/mongoose.c mongoose/mongoose.c
--- mongoose.orig/mongoose.c 2011-05-17 15:58:21.000000000 -0700
-+++ mongoose/mongoose.c 2011-05-17 18:45:24.000000000 -0700
++++ mongoose/mongoose.c 2011-05-18 12:23:56.000000000 -0700
@@ -221,7 +221,10 @@
#define MAX_CGI_ENVIR_VARS 64
#define ARRAY_SIZE(array) (sizeof(array) / sizeof(array[0]))
@@ -13,6 +13,24 @@ diff -durN mongoose.orig/mongoose.c mongoose/mongoose.c
#define DEBUG_TRACE(x) do { \
flockfile(stdout); \
printf("*** %lu.%p.%s.%d: ", \
+@@ -2888,7 +2891,7 @@
+ assert(blk->len < (int) sizeof(blk->buf));
+ }
+
+-static void handle_cgi_request(struct mg_connection *conn, const char *prog) {
++void handle_cgi_request(struct mg_connection *conn, const char *prog) {
+ int headers_len, data_len, i, fd_stdin[2], fd_stdout[2];
+ const char *status;
+ char buf[BUFSIZ], *pbuf, dir[PATH_MAX], *p;
+@@ -3220,7 +3223,7 @@
+ // This function is called when the request is read, parsed and validated,
+ // and Mongoose must decide what action to take: serve a file, or
+ // a directory, or call embedded function, etcetera.
+-static void handle_request(struct mg_connection *conn) {
++void handle_request(struct mg_connection *conn) {
+ struct mg_request_info *ri = &conn->request_info;
+ char path[PATH_MAX];
+ int uri_len;
@@ -3298,6 +3301,10 @@
}
}

0 comments on commit 1a6504f

Please sign in to comment.
Something went wrong with that request. Please try again.