Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Fix the Solaris build that was broken due to SipHash.
Solaris has different endian conversion macros from a different include
file.
  • Loading branch information
Yawning committed Apr 7, 2014
1 parent bc0882c commit 0d078c38d1d522480e197ef783c0a40120df0f05
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/ext/csiphash.c
@@ -46,6 +46,14 @@
#elif defined(__APPLE__)
# include <libkern/OSByteOrder.h>
# define _le64toh(x) OSSwapLittleToHostInt64(x)
#elif defined(sun) || defined(__sun)
/* Slowlaris is only big endian on Sparc */
# include <sys/byteorder.h>
# if defined(__sparc) || defined(__sparc__)
# define _le64toh(x) BSWAP_64(x)
# else
# define _le64toh(x) ((uint64_t)(x))
# endif
#else

/* See: http://sourceforge.net/p/predef/wiki/Endianness/ */

0 comments on commit 0d078c3

Please sign in to comment.