misc: Attempt to determine byte order in a cross-platform way

OSX does not provide an endian.h, use the other header files that
should define/include what we need. Also check that the byteorder
define is available.
2 files changed
tree: da8391c0fc4bbe5375a2d97f14e5ff94abd28469
  1. hlrsync/
  2. linux-kernel/
  3. openbsc/
  4. wireshark/