solaris: handle big-endian
https://github.com/warmcat/libwebsockets/issues/846
This commit is contained in:
parent
42ea3bd703
commit
253ef2180e
1 changed files with 12 additions and 0 deletions
|
@ -367,11 +367,23 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#if defined(__sun) && defined(__GNUC__)
|
||||
|
||||
#include <arpa/nameser_compat.h>
|
||||
|
||||
#if !defined (BYTE_ORDER)
|
||||
# define BYTE_ORDER __BYTE_ORDER__
|
||||
#endif
|
||||
|
||||
#if !defined(LITTLE_ENDIAN)
|
||||
# define LITTLE_ENDIAN __ORDER_LITTLE_ENDIAN__
|
||||
#endif
|
||||
|
||||
#if !defined(BIG_ENDIAN)
|
||||
# define BIG_ENDIAN __ORDER_BIG_ENDIAN__
|
||||
#endif
|
||||
|
||||
#endif /* sun + GNUC */
|
||||
|
||||
#if !defined(BYTE_ORDER)
|
||||
# define BYTE_ORDER __BYTE_ORDER
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue