Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/biology/abyss/files/patch-Common_city.cc
16461 views
1
--- Common/city.cc.orig 2022-05-11 22:23:32 UTC
2
+++ Common/city.cc
3
@@ -70,6 +70,10 @@ static uint32 UNALIGNED_LOAD32(const char *p) {
4
#define bswap_32(x) bswap32(x)
5
#define bswap_64(x) bswap64(x)
6
7
+#elif defined(__FreeBSD__)
8
+#include <sys/endian.h>
9
+#define bswap_32(x) bswap32(x)
10
+#define bswap_64(x) bswap64(x)
11
#else
12
#include <byteswap.h>
13
#endif
14
15