git: 384a632a34a4 - main - sysutils/passwordsafe: fix build on powerpc64le
Piotr Kubaj
pkubaj at FreeBSD.org
Wed Apr 14 11:46:37 UTC 2021
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=384a632a34a4c6d047226fbcec23875891fed0be
commit 384a632a34a4c6d047226fbcec23875891fed0be
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-04-14 11:46:56 +0000
Commit: Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-04-14 11:46:56 +0000
sysutils/passwordsafe: fix build on powerpc64le
powerpc64le is little endian.
---
sysutils/passwordsafe/files/patch-src_core_PwsPlatform.h | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/sysutils/passwordsafe/files/patch-src_core_PwsPlatform.h b/sysutils/passwordsafe/files/patch-src_core_PwsPlatform.h
index 89659d384036..37aa546fdf55 100644
--- a/sysutils/passwordsafe/files/patch-src_core_PwsPlatform.h
+++ b/sysutils/passwordsafe/files/patch-src_core_PwsPlatform.h
@@ -1,10 +1,13 @@
---- src/core/PwsPlatform.h.orig 2019-03-26 09:46:50 UTC
+--- src/core/PwsPlatform.h.orig 2020-10-28 19:48:24 UTC
+++ src/core/PwsPlatform.h
-@@ -140,6 +140,8 @@
- #define LTC_NO_ROLC
- #if defined(__i386__) || defined(__amd64__)
+@@ -116,8 +116,10 @@
+ // * FreeBSD on Intel *
+ // **********************************************
+ #elif defined(__FreeBSD) || defined(__FreeBSD__)
+-#if defined(__i386__) || defined(__amd64__)
++#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define PWS_LITTLE_ENDIAN
-+#elif defined(__ppc__)
++#else
+#define PWS_BIG_ENDIAN
#endif
// **********************************************
More information about the dev-commits-ports-all
mailing list