commit 9ccedbece0052cf743d5e5703e1676cda6cab733 Author: Nick Mathewson nickm@torproject.org Date: Mon Apr 7 13:07:14 2014 -0400
Make csiphash use the proper endian-converter on solaris
fixes bug 11426; bugfix on 0.2.5.3-alpha, where csiphash was introduced. --- changes/bug11426 | 3 +++ src/ext/csiphash.c | 4 ++++ 2 files changed, 7 insertions(+)
diff --git a/changes/bug11426 b/changes/bug11426 new file mode 100644 index 0000000..23b1e7d --- /dev/null +++ b/changes/bug11426 @@ -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. diff --git a/src/ext/csiphash.c b/src/ext/csiphash.c index 2a96f28..c247886 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
tor-commits@lists.torproject.org