aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/otrx/src/otrx.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2015-06-22 06:45:56 +0000
committerRafał Miłecki <zajec5@gmail.com>2015-06-22 06:45:56 +0000
commit0e5c445df65f80dd844ccc321479443152ba88c9 (patch)
treeaefbe2edba487d03c31e0bf56378ae034667333e /package/utils/otrx/src/otrx.c
parent5c809ecfe7f227c77ba6c4ad3a87cf6263bee477 (diff)
downloadupstream-0e5c445df65f80dd844ccc321479443152ba88c9.tar.gz
upstream-0e5c445df65f80dd844ccc321479443152ba88c9.tar.bz2
upstream-0e5c445df65f80dd844ccc321479443152ba88c9.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> SVN-Revision: 46105
Diffstat (limited to 'package/utils/otrx/src/otrx.c')
-rw-r--r--package/utils/otrx/src/otrx.c1
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>