]> git.ipfire.org Git - thirdparty/collectd.git/commit
capabilities: conditionalize mhd callback return type
authorJose M. Guisado Gomez <guigom@riseup.net>
Sat, 18 Jul 2020 10:25:21 +0000 (12:25 +0200)
committerJose M. Guisado Gomez <guigom@riseup.net>
Sat, 18 Jul 2020 10:25:21 +0000 (12:25 +0200)
commit7a336c237882a3ee6a020d2f6ad4f8b227cf5742
treef7afdfb8b20439a64104ea03d359476b114cc5d2
parent41b1e3337b7f9ae98ac6760756f40cf2082b993d
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
src/capabilities.c
src/capabilities_test.c