From: Victor Julien Date: Mon, 5 Sep 2016 08:17:16 +0000 (+0200) Subject: byteswap: fix compilation on SunOS X-Git-Tag: suricata-3.1.2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2c9b86cdfaa8b2fdf54bf828a0f959e120ba326;p=thirdparty%2Fsuricata.git byteswap: fix compilation on SunOS --- diff --git a/src/util-byte.h b/src/util-byte.h index 82c16a4d1c..aca846ac2b 100644 --- a/src/util-byte.h +++ b/src/util-byte.h @@ -45,7 +45,7 @@ #define SCByteSwap16(x) OSSwapInt16(x) #define SCByteSwap32(x) OSSwapInt32(x) #define SCByteSwap64(x) OSSwapInt64(x) -#elif defined(__WIN32) || defined(_WIN32) +#elif defined(__WIN32) || defined(_WIN32) || defined(sun) /* Quick & dirty solution, nothing seems to exist for this in Win32 API */ #define SCByteSwap16(x) \ ((((x) & 0xff00) >> 8) \