Skip to content

Commit 71ba05b

Browse files
authored
[ADT] Make use of the endian.h header on NetBSD and DragonFly (#74037)
Move away from machine/endian.h to POSIX endian.h header.
1 parent 340cb19 commit 71ba05b

File tree

1 file changed

+2
-1
lines changed
  • llvm/include/llvm/ADT

1 file changed

+2
-1
lines changed

llvm/include/llvm/ADT/bit.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
#endif
2929

3030
#if defined(__linux__) || defined(__GNU__) || defined(__HAIKU__) || \
31-
defined(__Fuchsia__) || defined(__EMSCRIPTEN__) || defined(__OpenBSD__)
31+
defined(__Fuchsia__) || defined(__EMSCRIPTEN__) || defined(__NetBSD__) || \
32+
defined(__OpenBSD__) || defined(__DragonFly__)
3233
#include <endian.h>
3334
#elif defined(_AIX)
3435
#include <sys/machine.h>

0 commit comments

Comments
 (0)