diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-04-07 13:07:14 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-04-07 13:07:14 -0400 |
commit | 9ccedbece0052cf743d5e5703e1676cda6cab733 (patch) | |
tree | 624ffdd4d895a9d16b123c37483bf796a5406d2d /src/ext/csiphash.c | |
parent | bc0882c868c0cb61ade0f8b500c4392c889d6d0e (diff) | |
download | tor-9ccedbece0052cf743d5e5703e1676cda6cab733.tar.gz tor-9ccedbece0052cf743d5e5703e1676cda6cab733.zip |
Make csiphash use the proper endian-converter on solaris
fixes bug 11426; bugfix on 0.2.5.3-alpha, where csiphash was
introduced.
Diffstat (limited to 'src/ext/csiphash.c')
-rw-r--r-- | src/ext/csiphash.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ext/csiphash.c b/src/ext/csiphash.c index 2a96f28815..c247886038 100644 --- a/src/ext/csiphash.c +++ b/src/ext/csiphash.c @@ -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/ */ |