diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-06-22 06:45:56 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2015-06-22 06:45:56 +0000 |
commit | acf3115d033b9ac4ca0bedd27f3227bc5023b5b4 (patch) | |
tree | fe8917328fc3d048a506077f80323f43407656ff /package/utils/otrx/src | |
parent | 42b3f9190a9ca568eec1327f17a60d92ecb22e2c (diff) | |
download | master-187ad058-acf3115d033b9ac4ca0bedd27f3227bc5023b5b4.tar.gz master-187ad058-acf3115d033b9ac4ca0bedd27f3227bc5023b5b4.tar.bz2 master-187ad058-acf3115d033b9ac4ca0bedd27f3227bc5023b5b4.zip |
otrx: include endian.h to make __BYTE_ORDER work with musl
Without this the condition
if __BYTE_ORDER == __BIG_ENDIAN
was always true.
Thanks Szabolcs.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46105 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/utils/otrx/src')
-rw-r--r-- | package/utils/otrx/src/otrx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/utils/otrx/src/otrx.c b/package/utils/otrx/src/otrx.c index 11db426a1d..131d8d6052 100644 --- a/package/utils/otrx/src/otrx.c +++ b/package/utils/otrx/src/otrx.c @@ -10,6 +10,7 @@ */ #include <byteswap.h> +#include <endian.h> #include <errno.h> #include <stdint.h> #include <stdio.h> |