]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
byteswap: fix compilation on SunOS
authorVictor Julien <victor@inliniac.net>
Mon, 5 Sep 2016 08:17:16 +0000 (10:17 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 5 Sep 2016 09:49:54 +0000 (11:49 +0200)
src/util-byte.h

index 82c16a4d1c502f7938489f740ff4d08de1743bad..aca846ac2bfe46564481889a83e522531242382d 100644 (file)
@@ -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)                      \