mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-11-06 13:21:07 +01:00
Fix endianness detection on OpenWrt
This commit is contained in:
@@ -76,6 +76,11 @@ typedef unsigned int _msgpack_atomic_counter_t;
|
|||||||
#else
|
#else
|
||||||
|
|
||||||
#include <arpa/inet.h> /* __BYTE_ORDER */
|
#include <arpa/inet.h> /* __BYTE_ORDER */
|
||||||
|
|
||||||
|
# ifndef __BYTE_ORDER
|
||||||
|
# include <sys/param.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && \
|
# if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && \
|
||||||
!(defined(__sun) && defined(__SVR4))
|
!(defined(__sun) && defined(__SVR4))
|
||||||
# include <byteswap.h>
|
# include <byteswap.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user