write_prometheus: add support for libmicrohttpd 0.9.45+
authorMarc Fournier <marc.fournier@camptocamp.com>
Tue, 1 Nov 2016 10:15:24 +0000 (11:15 +0100)
committerFlorian Forster <octo@collectd.org>
Fri, 11 Nov 2016 13:42:03 +0000 (14:42 +0100)
commitdc57f6e8f2394b51dd35d1d8231ef110c075b831
tree96731e79e6aa7fc1c572eeb10a0f3739c66ae5db
parent3d2dcd7b53979a1050ad632ac4881c2a7dd618af
write_prometheus: add support for libmicrohttpd 0.9.45+

Add switch on MHD_VERSION to support both legacy and modern MHD functions.

`MHD_create_response_from_data()` is deprecated since libmicrohttpd
0.9.5 and makes the build fail since 0.9.45.
src/write_prometheus.c