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)
committerPeter Xu <peterx@redhat.com>
Tue, 16 Jan 2024 03:16:10 +0000 (11:16 +0800)
commit44ce1b5d2fc77343f6a318cb3de613336a240048
tree9e86159dd2623d949650b66519dc7fa68a1e73b1
parenteb9f6daae49c06bb91e9660908587cc55265e43a
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>
migration/rdma.c