[llvm] ddfe478 - [Support] Make Support/SwapByteOrder.h compile on Fuchsia

Roland McGrath via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 29 10:49:17 PDT 2020


Author: Roland McGrath
Date: 2020-10-29T10:49:06-07:00
New Revision: ddfe4784cc6e72418a62dca7040ef1629252f986

URL: https://github.com/llvm/llvm-project/commit/ddfe4784cc6e72418a62dca7040ef1629252f986
DIFF: https://github.com/llvm/llvm-project/commit/ddfe4784cc6e72418a62dca7040ef1629252f986.diff

LOG: [Support] Make Support/SwapByteOrder.h compile on Fuchsia

Reviewed By: phosek

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

Added: 
    

Modified: 
    llvm/include/llvm/Support/SwapByteOrder.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Support/SwapByteOrder.h b/llvm/include/llvm/Support/SwapByteOrder.h
index 0e544fc7e71e..e8612ba6654b 100644
--- a/llvm/include/llvm/Support/SwapByteOrder.h
+++ b/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>


        


More information about the llvm-commits mailing list