Skip to content

Commit 7c7a643

Browse files
author
q66
committed
dumpet: fix build on big endian musl
1 parent 9a61836 commit 7c7a643

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
commit a3db0a3574271fea9be5f9a8832bead210686130
2+
Author: q66 <daniel@octaforge.org>
3+
Date: Tue Jan 7 02:03:11 2020 +0100
4+
5+
Include byteswap.h to prevent undefined references on BE musl
6+
7+
diff --git endian.h endian.h
8+
index 7c78807..3cae0e1 100644
9+
--- endian.h
10+
+++ endian.h
11+
@@ -20,6 +20,7 @@
12+
#define ENDIAN_H
13+
14+
#include <endian.h>
15+
+#include <byteswap.h>
16+
17+
#if __BYTE_ORDER == __LITTLE_ENDIAN
18+
#define cpu_to_le16(x) (x)

0 commit comments

Comments
 (0)