SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,14 @@
Index: galerautils/src/gu_byteswap.h
--- galerautils/src/gu_byteswap.h.orig
+++ galerautils/src/gu_byteswap.h
@@ -57,6 +57,10 @@ static GU_FORCE_INLINE uint64_t GU_ROTL64 (uint64_t x,
# define gu_bswap16 BSWAP_16
# define gu_bswap32 BSWAP_32
# define gu_bswap64 BSWAP_64
+#elif defined(__OpenBSD__)
+# define gu_bswap16 swap16
+# define gu_bswap32 swap32
+# define gu_bswap64 swap64
#elif defined(bswap16)
# define gu_bswap16 bswap16
# define gu_bswap32 bswap32