mirror of
https://github.com/ceph/ceph
synced 2024-12-21 19:02:10 +00:00
80c4a1cd37
* cmake/modules/CephChecks.cmake: detect the existence of struct msghdr, define HAVE_MSGHDR if it is found * src/common/CMakeLists.txt: do not compile journald.cc if HAVE_MSGHDR is FALSE. as in that case, we cannot use sendmsg() to write to journald unix domain socket * src/test/CMakeLists.txt, src/test/common/CMakeLists.txt: disable test exercising journald logging backend if HAVE_MSGHDR is not defined * src/common/Journald.h: define a dummy JournaldLogger and a dummy JournaldClusterLogger when HAVE_MSGHDR is not defined, in order to minimize the change in Log.h and Log.cc, otherwise the source code of Log.h and Log.cc would be segmented into smaller chunks by `ifdef HAVE_MSGHDR` macros. * src/include/config-h.in.cmake: define a new macro named HAVE_MSGHDR. Signed-off-by: Kefu Chai <kchai@redhat.com> |
||
---|---|---|
.. | ||
modules |