aboutsummaryrefslogtreecommitdiff
path: root/utils/netwhere/patches
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-07-24 14:37:04 -0700
committerRosen Penev <rosenp@gmail.com>2020-07-25 00:33:08 -0700
commit92b443fa3d67e46d5e7c19e8824369cc6582bf7a (patch)
treee61d7455e4054adf02df9ec40dab75a0ded2efef /utils/netwhere/patches
parent11c2d4d21ccc6a4a0e15233ae1a16664ba0eff2c (diff)
netwhere: fix compilation with newer libmicrohttpd
API change. Cleaned up Makefile. Fixed license information. Remove pointless CMAKE_INSTALL. This is not needed in InstallDev. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'utils/netwhere/patches')
-rw-r--r--utils/netwhere/patches/010-libmicrohttpd.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/utils/netwhere/patches/010-libmicrohttpd.patch b/utils/netwhere/patches/010-libmicrohttpd.patch
new file mode 100644
index 000000000..45e0448c8
--- /dev/null
+++ b/utils/netwhere/patches/010-libmicrohttpd.patch
@@ -0,0 +1,27 @@
+--- a/webservice.hpp
++++ b/webservice.hpp
+@@ -38,13 +38,13 @@ class WebService {
+ MHD_Daemon* daemon;
+ Functor functor;
+
+- static int on_request(void * cls, struct MHD_Connection * connection, const char * url, const char * method, const char * version,
++ static enum MHD_Result on_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);
+ };
+
+ template <typename Functor>
+-int WebService<Functor>::on_request(void * cls,
++enum MHD_Result WebService<Functor>::on_request(void * cls,
+ struct MHD_Connection * connection,
+ const char * url,
+ const char * method,
+@@ -53,7 +53,7 @@ int WebService<Functor>::on_request(void * cls,
+ size_t * upload_data_size,
+ void ** ptr) {
+ static int dummy;
+- int ret;
++ enum MHD_Result ret;
+
+ if (std::string("GET") != method)
+ return MHD_NO; /* unexpected method */