]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration/rdma: define htonll/ntohll only if not predefined
authorNick Briggs <nicholas.h.briggs@gmail.com>
Thu, 11 Jan 2024 18:20:17 +0000 (13:20 -0500)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 20 Jan 2024 14:56:07 +0000 (17:56 +0300)
commit3f675950dffd879ea35d387c0b6aa2136879d25f
tree641b36a6701a9e694f29be336e70fc231632b87c
parent1fc277a0e8ccb86a29c0b6ef656d90a62ef762d9
migration/rdma: define htonll/ntohll only if not predefined

Solaris has #defines for htonll and ntohll which cause syntax errors
when compiling code that attempts to (re)define these functions..

Signed-off-by: Nick Briggs <nicholas.h.briggs@gmail.com>
Link: https://lore.kernel.org/r/65a04a7d.497ab3.3e7bef1f@gateway.sonic.net
Signed-off-by: Peter Xu <peterx@redhat.com>
(cherry picked from commit 44ce1b5d2fc77343f6a318cb3de613336a240048)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
migration/rdma.c