From 529aeacfd2ce26f5bb03570bab51ca0697cff524 Mon Sep 17 00:00:00 2001 From: "Bruce A. Mah" Date: Fri, 19 Sep 2014 11:14:29 -0700 Subject: [PATCH] Make portable_endian.h more portable. Add a minimal amount of stuff so we can compile on Solaris 11. Fixes (sort of) #191. --- src/portable_endian.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/portable_endian.h b/src/portable_endian.h index ba56f64..8ac682f 100644 --- a/src/portable_endian.h +++ b/src/portable_endian.h @@ -64,6 +64,15 @@ # define be64toh(x) betoh64(x) # define le64toh(x) letoh64(x) +#elif defined(__SunOS) + +# include +# include +# include + +# define be64toh(x) ntohll(x) +# define htobe64(x) htonll(x) + #elif defined(__WINDOWS__) # include