[PATCH 1/2] capabilities: conditionalize mhd callback return type
authorJose M. Guisado Gomez <guigom@riseup.net>
Sat, 18 Jul 2020 10:25:21 +0000 (12:25 +0200)
committerPeter Michael Green <plugwash@raspbian.org>
Tue, 22 Sep 2020 14:58:41 +0000 (15:58 +0100)
commit0f6670aec00f65beb47ac126af9e03cedc380c02
tree76785801eee779e5616b8a958f28a87205ad9783
parentde6507dd251d8dcb53716f1ca9acc1f83dacbbea
[PATCH 1/2] capabilities: conditionalize mhd callback return type

libmicrohttpd introduced an API change with respect its callback
return types. Now its signature says that an enum must be returned
instead of an int. This causes collectd to not finish compilation
because of the compiler warnings this arised (in addition to -Werror)

Add conditional compiling so systems with microhttpd >=0.9.71 can
compile collectd with -Werror

Fixes #3511

Gbp-Pq: Name 3512.patch
src/capabilities.c
src/capabilities_test.c
src/write_prometheus.c