[llvm] 621d95a - [ADT] Make use of the endian.h header on OpenBSD (#71144)

via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 3 12:23:15 PDT 2023


Author: Brad Smith
Date: 2023-11-03T15:23:11-04:00
New Revision: 621d95a8765ad044a27750477636248397963518

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

LOG: [ADT] Make use of the endian.h header on OpenBSD (#71144)

OpenBSD prefers the use of the endian.h header.

Added: 
    

Modified: 
    llvm/include/llvm/ADT/bit.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/bit.h b/llvm/include/llvm/ADT/bit.h
index 0a228b2204d6fc2..12223facbb30500 100644
--- a/llvm/include/llvm/ADT/bit.h
+++ b/llvm/include/llvm/ADT/bit.h
@@ -28,7 +28,7 @@
 #endif
 
 #if defined(__linux__) || defined(__GNU__) || defined(__HAIKU__) ||            \
-    defined(__Fuchsia__) || defined(__EMSCRIPTEN__)
+    defined(__Fuchsia__) || defined(__EMSCRIPTEN__) || defined(__OpenBSD__)
 #include <endian.h>
 #elif defined(_AIX)
 #include <sys/machine.h>


        


More information about the llvm-commits mailing list