Commit 9ccedbec authored by Nick Mathewson's avatar Nick Mathewson 🤹
Browse files

Make csiphash use the proper endian-converter on solaris

fixes bug 11426; bugfix on 0.2.5.3-alpha, where csiphash was
introduced.
parent bc0882c8
Loading
Loading
Loading
Loading

changes/bug11426

0 → 100644
+3 −0
Original line number Diff line number Diff line
  o Minor bugfixes:
    - Fix compilation on Solaris, which does not have <endian.h>.
      Fixes bug 11426; bugfix on 0.2.5.3-alpha.
+4 −0
Original line number Diff line number Diff line
@@ -46,6 +46,10 @@
#elif defined(__APPLE__)
#  include <libkern/OSByteOrder.h>
#  define _le64toh(x) OSSwapLittleToHostInt64(x)
#elif defined(sun) || defined(__sun)
#  include <sys/byteorder.h>
#  define _le64toh(x) LE_64(x)

#else

/* See: http://sourceforge.net/p/predef/wiki/Endianness/ */