Project

General

Profile

Actions

Bug #853

closed
MS

1.4.3: src/util-byte.h: Solaris doesn't have byte swapping

Bug #853: 1.4.3: src/util-byte.h: Solaris doesn't have byte swapping

Added by Mark Solaris over 12 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Affected Versions:
Effort:
Difficulty:
Label:

Description

Patch is required:

--- suricata-1.4.3/src/util-byte.h.orig Sat Jul  6 15:34:28 2013
+++ suricata-1.4.3/src/util-byte.h      Sat Jul  6 15:34:52 2013
@@ -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)                      \

VJ Updated by Victor Julien over 12 years ago Actions #1

  • Target version set to TBD

AH Updated by Andreas Herz over 10 years ago Actions #2

  • Status changed from New to Closed

VJ Updated by Victor Julien over 8 years ago Actions #3

  • Target version deleted (TBD)
Actions

Also available in: PDF Atom