summaryrefslogtreecommitdiff
path: root/package/utils/otrx/src
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
parent5c809ecfe7f227c77ba6c4ad3a87cf6263bee477 (diff)
downloadmtk-20170518-0e5c445df65f80dd844ccc321479443152ba88c9.zip
mtk-20170518-0e5c445df65f80dd844ccc321479443152ba88c9.tar.gz
mtk-20170518-0e5c445df65f80dd844ccc321479443152ba88c9.tar.bz2
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')
-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 11db426..131d8d6 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>