Use BYTE_ORDER to determine byte order
Submitted by Jasper Lievisse Adriaanse
Assigned to Spice Bug List
Created attachment 122347 Use BYTE_ORDER to determine byte order
Currently macros.h goes through various hoops to determine the byte order of the target. This broke the build on OpenBSD/sparc64 as it wasn't listed in hardcoded tests.
So it would be better to use BYTE_ORDER (http://austingroupbugs.net/view.php?id=162) instead and if that's not available try to manually figure out the byte order.
Attached patch implements that and is currently shipped in OpenBSD.
Attachment 122347, "Use BYTE_ORDER to determine byte order":