diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-06-30 09:56:10 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-07-01 06:10:48 +0200 |
commit | d17eabb1052e7c8c432331a7a782845e36164f01 (patch) | |
tree | f28be69fb4d674b2e4b1e1581d899f09e2898dd8 /src/journal-remote/microhttpd-util.h | |
parent | Merge pull request #16316 from yuwata/backlight-use-actual-brightness (diff) | |
download | systemd-d17eabb1052e7c8c432331a7a782845e36164f01.tar.xz systemd-d17eabb1052e7c8c432331a7a782845e36164f01.zip |
Fix build with µhttpd 0.9.71
The return type of callbacks was changed from int to an enum.
Diffstat (limited to '')
-rw-r--r-- | src/journal-remote/microhttpd-util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/journal-remote/microhttpd-util.h b/src/journal-remote/microhttpd-util.h index d90c6bbd4f..4ca9a5c4f1 100644 --- a/src/journal-remote/microhttpd-util.h +++ b/src/journal-remote/microhttpd-util.h @@ -47,6 +47,12 @@ # define MHD_create_response_from_fd_at_offset64 MHD_create_response_from_fd_at_offset #endif +#if MHD_VERSION >= 0x00097002 +# define mhd_result enum MHD_Result +#else +# define mhd_result int +#endif + void microhttpd_logger(void *arg, const char *fmt, va_list ap) _printf_(2, 0); /* respond_oom() must be usable with return, hence this form. */ |