diff --git a/base/basictypes.h b/base/basictypes.h index 479b6510f2..7f3dfea731 100644 --- a/base/basictypes.h +++ b/base/basictypes.h @@ -87,7 +87,7 @@ inline uint64 swap64(uint64 _data) {return ((uint64)swap32(_data) << 32) | swap3 inline uint16 swap16(uint16 _data) {return bswap_16(_data);} inline uint32 swap32(uint32 _data) {return bswap_32(_data);} inline uint64 swap64(uint64 _data) {return bswap_64(_data);} -#elif defined(__FreeBSD__) +#elif defined(__DragonFly__) || defined(__FreeBSD__) #include inline uint16 swap16(uint16 _data) {return bswap16(_data);} inline uint32 swap32(uint32 _data) {return bswap32(_data);} diff --git a/ext/cityhash/city.cpp b/ext/cityhash/city.cpp index 329111c9a8..06190d529f 100644 --- a/ext/cityhash/city.cpp +++ b/ext/cityhash/city.cpp @@ -68,12 +68,12 @@ static uint32 UNALIGNED_LOAD32(const char *p) { #define bswap_32(x) BSWAP_32(x) #define bswap_64(x) BSWAP_64(x) -#elif defined(__FreeBSD__) +#elif defined(__DragonFly__) || defined(__FreeBSD__) #include #define bswap_32(x) bswap32(x) #define bswap_64(x) bswap64(x) -#elif defined(__OpenBSD__) +#elif defined(__Bitrig__) || defined(__OpenBSD__) #include #define bswap_32(x) swap32(x) #define bswap_64(x) swap64(x)