]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make csiphash use the proper endian-converter on solaris
authorNick Mathewson <nickm@torproject.org>
Mon, 7 Apr 2014 17:07:14 +0000 (13:07 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 7 Apr 2014 17:07:14 +0000 (13:07 -0400)
fixes bug 11426; bugfix on 0.2.5.3-alpha, where csiphash was
introduced.

changes/bug11426 [new file with mode: 0644]
src/ext/csiphash.c

diff --git a/changes/bug11426 b/changes/bug11426
new file mode 100644 (file)
index 0000000..23b1e7d
--- /dev/null
@@ -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.
index 2a96f28815f1f688c69f95ea47d1d23140635350..c24788603819246c02eba100564727d2c690acfb 100644 (file)
 #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/ */