summaryrefslogtreecommitdiff
path: root/app-admin/conky/files/conky-1.11.6-fpermissive.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-11-25 22:39:15 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-11-25 22:39:15 +0000
commitd934827bf44b7cfcf6711964418148fa60877668 (patch)
tree0625f358789b5e015e49db139cc1dbc9be00428f /app-admin/conky/files/conky-1.11.6-fpermissive.patch
parent2e34d110f164bf74d55fced27fe0000201b3eec5 (diff)
gentoo resync : 25.11.2020
Diffstat (limited to 'app-admin/conky/files/conky-1.11.6-fpermissive.patch')
-rw-r--r--app-admin/conky/files/conky-1.11.6-fpermissive.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/app-admin/conky/files/conky-1.11.6-fpermissive.patch b/app-admin/conky/files/conky-1.11.6-fpermissive.patch
new file mode 100644
index 000000000000..1ac1173ba646
--- /dev/null
+++ b/app-admin/conky/files/conky-1.11.6-fpermissive.patch
@@ -0,0 +1,31 @@
+From 16be0e1571a586168855bedb6da1ddc732b0bbf4 Mon Sep 17 00:00:00 2001
+From: Brenden Matthews <brenden@brndn.io>
+Date: Thu, 22 Oct 2020 13:02:00 -0400
+Subject: [PATCH] Build fix for libmicrohttpd.
+
+---
+ src/conky.cc | 9 +++++----
+ 1 file changed, 5 insertions(+), 4 deletions(-)
+
+diff --git a/src/conky.cc b/src/conky.cc
+index 79633a40..b1743466 100644
+--- a/src/conky.cc
++++ b/src/conky.cc
+@@ -322,12 +322,13 @@ struct MHD_Daemon *httpd;
+ static conky::simple_config_setting<bool> http_refresh("http_refresh", false,
+ true);
+
+-int sendanswer(void *cls, struct MHD_Connection *connection, const char *url,
+- const char *method, const char *version, const char *upload_data,
+- size_t *upload_data_size, void **con_cls) {
++MHD_Result sendanswer(void *cls, struct MHD_Connection *connection,
++ const char *url, const char *method, const char *version,
++ const char *upload_data, unsigned long *upload_data_size,
++ void **con_cls) {
+ struct MHD_Response *response = MHD_create_response_from_buffer(
+ webpage.length(), (void *)webpage.c_str(), MHD_RESPMEM_PERSISTENT);
+- int ret = MHD_queue_response(connection, MHD_HTTP_OK, response);
++ MHD_Result ret = MHD_queue_response(connection, MHD_HTTP_OK, response);
+ MHD_destroy_response(response);
+ if (cls || url || method || version || upload_data || upload_data_size ||
+ con_cls) {} // make compiler happy