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:
parent
07761c347f
commit
4ccaa8c493
12
security/samhain/files/patch-src_sh__dbIO.c
Normal file
12
security/samhain/files/patch-src_sh__dbIO.c
Normal 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);
|
Loading…
Reference in New Issue
Block a user