From 7de6ec0669cad3e16b1ab05d53965ca21d97d506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sun, 4 Oct 2020 00:03:31 +0200 Subject: [PATCH] Fix build with older microhttpd --- src/conky.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/conky.cc b/src/conky.cc index b1743466..365ea3ec 100644 --- a/src/conky.cc +++ b/src/conky.cc @@ -317,6 +317,10 @@ static conky::simple_config_setting append_file("append_file", static FILE *append_fpointer = nullptr; #ifdef BUILD_HTTP +#ifdef MHD_YES +/* older API */ +#define MHD_Result int +#endif /* MHD_YES */ std::string webpage; struct MHD_Daemon *httpd; static conky::simple_config_setting http_refresh("http_refresh", false,