[PATCH] D90279: [Support] Make Support/SwapByteOrder.h compile on Fuchsia
Roland McGrath via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 27 18:31:22 PDT 2020
mcgrathr created this revision.
mcgrathr added a reviewer: phosek.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
mcgrathr requested review of this revision.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D90279
Files:
llvm/include/llvm/Support/SwapByteOrder.h
Index: llvm/include/llvm/Support/SwapByteOrder.h
===================================================================
--- llvm/include/llvm/Support/SwapByteOrder.h
+++ llvm/include/llvm/Support/SwapByteOrder.h
@@ -22,7 +22,7 @@
#endif
#if defined(__linux__) || defined(__GNU__) || defined(__HAIKU__) || \
- defined(__EMSCRIPTEN__)
+ defined(__Fuchsia__) || defined(__EMSCRIPTEN__)
#include <endian.h>
#elif defined(_AIX)
#include <sys/machine.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90279.301160.patch
Type: text/x-patch
Size: 469 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201028/b762e222/attachment.bin>
More information about the llvm-commits
mailing list