[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)
committerBernd Zeimetz <bzed@debian.org>
Tue, 28 Jul 2020 09:21:09 +0000 (10:21 +0100)
commit6fea9ad9a79a23b6f52e4f6df3fd192cdfef0e5b
treecb2e8b0e2df5ecf1953cc9c92c7e200ddb041be9
parent75c3afd549c8a3bbcd7a5554252b5074bde77336
[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