[Support] Make Support/SwapByteOrder.h compile on Fuchsia
authorRoland McGrath <mcgrathr@google.com>
Wed, 28 Oct 2020 01:30:25 +0000 (18:30 -0700)
committerRoland McGrath <mcgrathr@google.com>
Thu, 29 Oct 2020 17:49:06 +0000 (10:49 -0700)
Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D90279

llvm/include/llvm/Support/SwapByteOrder.h

index 0e544fc..e8612ba 100644 (file)
@@ -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>