]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
compat: add win32 endianness helpers
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 20 Jan 2021 11:40:35 +0000 (11:40 +0000)
committerJason Dillaman <dillaman@redhat.com>
Tue, 26 Jan 2021 14:52:48 +0000 (09:52 -0500)
commit513f7b50a0206f4d0ac712def571810c01de5696
treea22b44397d1ffffd94778675f121d7684d08ee6f
parent81993b1e0fbb869ed23d656b7f95b542d8d7be13
compat: add win32 endianness helpers

The new QCOW migration helpers are using functions such as "be64toh",
which aren't provided by MINGW, breaking the "rbd" tool on Windows.

We'll define those endianness related helpers in compat.h

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
(cherry picked from commit 057660aec9f7435f92ac32e3ee902d601b09b540)
src/include/compat.h