mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 23:53:32 +01:00
Make csiphash use the proper endian-converter on solaris
fixes bug 11426; bugfix on 0.2.5.3-alpha, where csiphash was introduced.
This commit is contained in:
parent
bc0882c868
commit
9ccedbece0
3
changes/bug11426
Normal file
3
changes/bug11426
Normal file
@ -0,0 +1,3 @@
|
||||
o Minor bugfixes:
|
||||
- Fix compilation on Solaris, which does not have <endian.h>.
|
||||
Fixes bug 11426; bugfix on 0.2.5.3-alpha.
|
@ -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/ */
|
||||
|
Loading…
Reference in New Issue
Block a user