[llvm] [ADT] Make use of the endian.h header on OpenBSD (PR #71144)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 2 21:59:52 PDT 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-adt
Author: Brad Smith (brad0)
<details>
<summary>Changes</summary>
OpenBSD prefers the use of the endian.h header.
---
Full diff: https://github.com/llvm/llvm-project/pull/71144.diff
1 Files Affected:
- (modified) llvm/include/llvm/ADT/bit.h (+1-1)
``````````diff
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>
``````````
</details>
https://github.com/llvm/llvm-project/pull/71144
More information about the llvm-commits
mailing list