aboutsummaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2021-09-30 10:11:20 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2021-09-30 10:11:20 +0000
commit3ba7c58743436ce6b93468a114dbc54c99d4b91b (patch)
treeb27644a703aba6f46141d106443651ab1aa4d5ed /databases
parent31c6e4cc00e7876278910801b6dea763236c3c50 (diff)
downloadports-3ba7c58743436ce6b93468a114dbc54c99d4b91b.tar.gz
ports-3ba7c58743436ce6b93468a114dbc54c99d4b91b.zip
databases/redisdesktopmanager: fix build on powerpc*
FreeBSD uses sys/endian.h for endian conversions.
Diffstat (limited to 'databases')
-rw-r--r--databases/redisdesktopmanager/files/patch-3rdparty_simdjson_singleheader_simdjson.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/databases/redisdesktopmanager/files/patch-3rdparty_simdjson_singleheader_simdjson.h b/databases/redisdesktopmanager/files/patch-3rdparty_simdjson_singleheader_simdjson.h
new file mode 100644
index 000000000000..5901c843f00f
--- /dev/null
+++ b/databases/redisdesktopmanager/files/patch-3rdparty_simdjson_singleheader_simdjson.h
@@ -0,0 +1,14 @@
+--- 3rdparty/simdjson/singleheader/simdjson.h.orig 2021-09-30 06:08:20 UTC
++++ 3rdparty/simdjson/singleheader/simdjson.h
+@@ -15748,7 +15748,11 @@ simdjson_unused simdjson_warn_unused simdjson_really_i
+ #ifndef SIMDJSON_PPC64_NUMBERPARSING_H
+ #define SIMDJSON_PPC64_NUMBERPARSING_H
+
++#ifdef linux
+ #include <byteswap.h>
++#elif defined(__FreeBSD__)
++#include <sys/endian.h>
++#endif
+
+ namespace simdjson {
+ namespace ppc64 {