浏览代码

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 <[email protected]>

SVN-Revision: 46105
Rafał Miłecki 10 年之前
父节点
当前提交
0e5c445df6
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      package/utils/otrx/src/otrx.c

+ 1 - 0
package/utils/otrx/src/otrx.c

@@ -10,6 +10,7 @@
  */
  */
 
 
 #include <byteswap.h>
 #include <byteswap.h>
+#include <endian.h>
 #include <errno.h>
 #include <errno.h>
 #include <stdint.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdio.h>