From 2704009ad2aab0103384bef4a6e4ae4fb6404fc0 Mon Sep 17 00:00:00 2001 From: Max Desiatov Date: Fri, 5 Jun 2020 11:34:31 +0100 Subject: [PATCH] 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. --- stdlib/include/llvm/Support/SwapByteOrder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/include/llvm/Support/SwapByteOrder.h b/stdlib/include/llvm/Support/SwapByteOrder.h index 890cb4690596b..19c600a896471 100644 --- a/stdlib/include/llvm/Support/SwapByteOrder.h +++ b/stdlib/include/llvm/Support/SwapByteOrder.h @@ -21,7 +21,7 @@ #include #endif -#if defined(__linux__) || defined(__GNU__) || defined(__HAIKU__) +#if defined(__linux__) || defined(__GNU__) || defined(__HAIKU__) || defined(__wasi__) #include #elif defined(_AIX) #include