aboutsummaryrefslogblamecommitdiff
path: root/biology/abyss/files/patch-Common_city.cc
blob: 9fc7031b6639324c660c43886a5125d787ebd4f5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                  
--- Common/city.cc.orig	2018-09-21 23:44:14 UTC
+++ Common/city.cc
@@ -65,6 +65,10 @@ static uint32 UNALIGNED_LOAD32(const char *p) {
 #define bswap_32(x) OSSwapInt32(x)
 #define bswap_64(x) OSSwapInt64(x)
 
+#elif defined(__FreeBSD__)
+#include <sys/endian.h>
+#define bswap_32(x) bswap32(x)
+#define bswap_64(x) bswap64(x)
 #else
 #include <byteswap.h>
 #endif