diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2021-04-14 11:46:56 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2021-04-14 11:46:56 +0000 |
commit | 384a632a34a4c6d047226fbcec23875891fed0be (patch) | |
tree | b8b78df5add92e2e3daf6df650076b040e635716 | |
parent | e91ecf9b7664d357cf9270b0edc43524957e9777 (diff) | |
download | ports-384a632a34a4c6d047226fbcec23875891fed0be.tar.gz ports-384a632a34a4c6d047226fbcec23875891fed0be.zip |
sysutils/passwordsafe: fix build on powerpc64le
powerpc64le is little endian.
-rw-r--r-- | sysutils/passwordsafe/files/patch-src_core_PwsPlatform.h | 13 |
1 files 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 // ********************************************** |