summaryrefslogtreecommitdiff
path: root/www-apps/webmcp/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-12-15 14:48:25 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-12-15 14:48:25 +0000
commite4769acf6646f4b0ef28cb695cec8ed128aba920 (patch)
tree56d860ca0e474de6bd71428f2702a2dd994d34b5 /www-apps/webmcp/files
parent17e82681588151572e451b0daf68fd568531d3e4 (diff)
gentoo auto-resync : 15:12:2023 - 14:48:25
Diffstat (limited to 'www-apps/webmcp/files')
-rw-r--r--www-apps/webmcp/files/webmcp-2.1.0-c99.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/www-apps/webmcp/files/webmcp-2.1.0-c99.patch b/www-apps/webmcp/files/webmcp-2.1.0-c99.patch
new file mode 100644
index 000000000000..ac27ebb43295
--- /dev/null
+++ b/www-apps/webmcp/files/webmcp-2.1.0-c99.patch
@@ -0,0 +1,20 @@
+--- a/libraries/extos/extos.c 2023-12-15 10:12:53.396506457 +0100
++++ b/libraries/extos/extos.c 2023-12-15 14:32:20.464092779 +0100
+@@ -262,7 +262,7 @@
+ if (result != 1) goto extos_pfilter_error_fd_remapping;
+ do result = dup(pipe_err[1]); while (result < 0 && errno == EINTR);
+ if (result != 2) goto extos_pfilter_error_fd_remapping;
+- execvp(filename, args);
++ execvp(filename, (char * const*)args);
+ status_buf[0] = errno;
+ do result = write(pipe_status[1], status_buf, 1); while (result < 0 && errno == EINTR);
+ _exit(0);
+@@ -287,7 +287,7 @@
+ lua_settop(L, 0);
+ lua_newtable(L); // 1
+ while (1) {
+- readdir_r(dir, &entry_buffer, &entry);
++ entry = readdir(dir);
+ if (!entry) break;
+ // Linux doesn't have d_namlen
+ //lua_pushlstring(L, entry->d_name, entry->d_namlen);