Skip to content

Commit

Permalink
HP-UX: set alignment pragma in hash table
Browse files Browse the repository at this point in the history
 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.
  • Loading branch information
pstorz committed Nov 3, 2017
1 parent a40d7f2 commit 12f27d4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib/htable.c
Expand Up @@ -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
Expand Down

0 comments on commit 12f27d4

Please sign in to comment.