From b7aab30fcf90c0babace57b8bcd9b8372a889a18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 8 Jun 2021 15:41:42 +0700 Subject: [PATCH] psensor: fix build with microhttpd-0.9.71 --- .../psensor/patches/microhttpd-0.9.71.patch | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 srcpkgs/psensor/patches/microhttpd-0.9.71.patch diff --git a/srcpkgs/psensor/patches/microhttpd-0.9.71.patch b/srcpkgs/psensor/patches/microhttpd-0.9.71.patch new file mode 100644 index 00000000000..6c7c46e4fd1 --- /dev/null +++ b/srcpkgs/psensor/patches/microhttpd-0.9.71.patch @@ -0,0 +1,34 @@ +Upstream: git diff --no-prefix 4088dc4~ ad8a1e3 +diff --git src/server/server.c src/server/server.c +index a70f6ab..5d7f751 100644 +--- src/server/server.c ++++ src/server/server.c +@@ -306,14 +306,20 @@ create_response(const char *nurl, const char *method, unsigned int *rp_code) + MHD_RESPMEM_MUST_FREE); + } + +-static int cbk_http_request(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 **ptr) ++ ++#if MHD_VERSION < 0x00097002 ++static int ++#else ++static enum MHD_Result ++#endif ++cbk_http_request(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 **ptr) + { + static int dummy; + struct MHD_Response *response;