From 9ccedbece0052cf743d5e5703e1676cda6cab733 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 7 Apr 2014 13:07:14 -0400 Subject: Make csiphash use the proper endian-converter on solaris fixes bug 11426; bugfix on 0.2.5.3-alpha, where csiphash was introduced. --- src/ext/csiphash.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ext') diff --git a/src/ext/csiphash.c b/src/ext/csiphash.c index 2a96f2881..c24788603 100644 --- a/src/ext/csiphash.c +++ b/src/ext/csiphash.c @@ -46,6 +46,10 @@ #elif defined(__APPLE__) # include # define _le64toh(x) OSSwapLittleToHostInt64(x) +#elif defined(sun) || defined(__sun) +# include +# define _le64toh(x) LE_64(x) + #else /* See: http://sourceforge.net/p/predef/wiki/Endianness/ */ -- cgit v1.2.3