From cef3333f2a9cc560f5c54f210b8073e9ad273b47 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 18 Jan 2018 18:01:45 +0100 Subject: [PATCH] bolt_ppc.go: define `var brokenUnaligned` If this var is missing building on the ppc architecture fails. This PR adds it. --- bolt_ppc.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bolt_ppc.go b/bolt_ppc.go index 645ddc3..55cb8a7 100644 --- a/bolt_ppc.go +++ b/bolt_ppc.go @@ -7,3 +7,6 @@ const maxMapSize = 0x7FFFFFFF // 2GB // maxAllocSize is the size used when creating array pointers. const maxAllocSize = 0xFFFFFFF + +// Are unaligned load/stores broken on this arch? +var brokenUnaligned = false