Kaynağa Gözat

Merge remote-tracking branch 'public/bug11426'

Nick Mathewson 10 yıl önce
ebeveyn
işleme
08ced4a7bf
2 değiştirilmiş dosya ile 7 ekleme ve 0 silme
  1. 3 0
      changes/bug11426
  2. 4 0
      src/ext/csiphash.c

+ 3 - 0
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.

+ 4 - 0
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/ */