[llvm] 71ba05b - [ADT] Make use of the endian.h header on NetBSD and DragonFly (#74037)

via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 30 22:25:30 PST 2023


Author: Brad Smith
Date: 2023-12-01T01:25:25-05:00
New Revision: 71ba05b4e1ccbfdc2bc35906a985744ad785e676

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

LOG: [ADT] Make use of the endian.h header on NetBSD and DragonFly (#74037)

Move away from machine/endian.h to POSIX 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 12223facbb30500..c42b5e686bdc9cf 100644
--- a/llvm/include/llvm/ADT/bit.h
+++ b/llvm/include/llvm/ADT/bit.h
@@ -28,7 +28,8 @@
 #endif
 
 #if defined(__linux__) || defined(__GNU__) || defined(__HAIKU__) ||            \
-    defined(__Fuchsia__) || defined(__EMSCRIPTEN__) || defined(__OpenBSD__)
+    defined(__Fuchsia__) || defined(__EMSCRIPTEN__) || defined(__NetBSD__) ||  \
+    defined(__OpenBSD__) || defined(__DragonFly__)
 #include <endian.h>
 #elif defined(_AIX)
 #include <sys/machine.h>


        


More information about the llvm-commits mailing list