git: 4ccaa8c49329 - main - security/samhain: fix build on powerpc64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 22 Oct 2021 12:09:21 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=4ccaa8c493292a2e476bba44a144f959a8540495 commit 4ccaa8c493292a2e476bba44a144f959a8540495 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2021-10-22 11:42:49 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2021-10-22 11:42:49 +0000 security/samhain: fix build on powerpc64 x_sh_dbIO.c:229:36: error: initializer element is not a compile-time constant static unsigned short ooop = *iptr; --- security/samhain/files/patch-src_sh__dbIO.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/security/samhain/files/patch-src_sh__dbIO.c b/security/samhain/files/patch-src_sh__dbIO.c new file mode 100644 index 000000000000..0b8e77bd5e97 --- /dev/null +++ b/security/samhain/files/patch-src_sh__dbIO.c @@ -0,0 +1,12 @@ +--- src/sh_dbIO.c.orig 2021-10-22 01:34:14 UTC ++++ src/sh_dbIO.c +@@ -226,7 +226,8 @@ static unsigned short * swap_short (unsigned short * + else + { + /* alignment problem */ +- static unsigned short ooop = *iptr; ++ static unsigned short ooop; ++ ooop = *iptr; + unsigned short hi = (ooop & 0xff00); + unsigned short lo = (ooop & 0xff); + ooop = (lo << 8) | (hi >> 8);