Skip to content

Commit 2704009

Browse files
authored
runtime: fix SwapByteOrder.h when building for WASI
`endian.h` in the WASI SDK include root, so should use that instead as some other platforms do.
1 parent 0838a65 commit 2704009

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/include/llvm/Support/SwapByteOrder.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <stdlib.h>
2222
#endif
2323

24-
#if defined(__linux__) || defined(__GNU__) || defined(__HAIKU__)
24+
#if defined(__linux__) || defined(__GNU__) || defined(__HAIKU__) || defined(__wasi__)
2525
#include <endian.h>
2626
#elif defined(_AIX)
2727
#include <sys/machine.h>

0 commit comments

Comments
 (0)