1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

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;
This commit is contained in:
Piotr Kubaj 2021-10-22 11:42:49 +00:00
parent 07761c347f
commit 4ccaa8c493

View File

@ -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);