Skip to content

Commit dc797d8

Browse files
committed
[ADT] Make use of the endian.h header on NetBSD and DragonFly
Move away from machine/endian.h to POSIX endian.h header.
1 parent 5c60e2c commit dc797d8

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)