From 12f27d45226d04eff8ffdf95010c48f5a802feb0 Mon Sep 17 00:00:00 2001 From: Philipp Storz Date: Fri, 3 Nov 2017 03:51:16 -0500 Subject: [PATCH] HP-UX: set alignment pragma in hash table we now set pragma pack(4) in htable.c for hpux, as we otherwise get this error: Program received signal SIGBUS, Bus error si_code: 1 - BUS_ADRALN - Invalid address alignment. --- src/lib/htable.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/htable.c b/src/lib/htable.c index 70c6cf6cba5..61e843d0444 100644 --- a/src/lib/htable.c +++ b/src/lib/htable.c @@ -40,6 +40,12 @@ * Kern Sibbald, July MMIII */ +#include "hostconfig.h" + +#ifdef HAVE_HPUX_OS +#pragma pack(4) +#endif + #include "bareos.h" #define B_PAGE_SIZE 4096