zeevt/csnappy — Issue #8: Solaris bswap
Author: bnjf
Created: 2011-12-01 23:30:30+00:00
State: open

> diff -ur Compress-Snappy-0.12/src/csnappy_internal_userspace.h
> Compress-Snappy-0.12-bnjf/src/csnappy_internal_userspace.h
> --- Compress-Snappy-0.12/src/csnappy_internal_userspace.h
> 2011-04-30 05:21:44.000000000 +1000
> +++ Compress-Snappy-0.12-bnjf/src/csnappy_internal_userspace.h
> 2011-12-01 10:28:56.092213000 +1100
> @@ -162,6 +162,11 @@
> #define bswap_16(x) OSSwapInt16(x)
> #define bswap_32(x) OSSwapInt32(x)
> #define bswap_64(x) OSSwapInt64(x)
> +#elif defined(__sun)
> +#include
> +#define bswap_16(x) BSWAP_16(x)
> +#define bswap_32(x) BSWAP_32(x)
> +#define bswap_64(x) BSWAP_64(x)
> #else
> #include
> #endif