diff options
author | martin <martin@pkgsrc.org> | 2013-01-16 16:27:23 +0000 |
---|---|---|
committer | martin <martin@pkgsrc.org> | 2013-01-16 16:27:23 +0000 |
commit | bc8521a1b3fbfd03555b0e0761f4ab82d8d9e46e (patch) | |
tree | 89ac191113da02f7a2927f8f5a720a175bd75314 /meta-pkgs/boost/patches/patch-tools_build_v2_engine_hash.c | |
parent | fa27e90859fe74132bb628f41ea96fc4fa212299 (diff) | |
download | pkgsrc-bc8521a1b3fbfd03555b0e0761f4ab82d8d9e46e.tar.gz |
Patch jam to provide greater alignement on NetBSD/sparc, where time_t (64bit)
requires greater alignement than pointers.
Diffstat (limited to 'meta-pkgs/boost/patches/patch-tools_build_v2_engine_hash.c')
-rw-r--r-- | meta-pkgs/boost/patches/patch-tools_build_v2_engine_hash.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta-pkgs/boost/patches/patch-tools_build_v2_engine_hash.c b/meta-pkgs/boost/patches/patch-tools_build_v2_engine_hash.c new file mode 100644 index 00000000000..68de8c1ad56 --- /dev/null +++ b/meta-pkgs/boost/patches/patch-tools_build_v2_engine_hash.c @@ -0,0 +1,27 @@ +# $NetBSD: patch-tools_build_v2_engine_hash.c,v 1.1 2013/01/16 16:27:23 martin Exp $ +# fix alignement for sparc - time_t requires greater alignement than +# void* + +--- tools/build/v2/engine/hash.c.orig 2012-04-26 05:35:55.000000000 +0200 ++++ tools/build/v2/engine/hash.c 2013-01-16 16:13:21.000000000 +0100 +@@ -32,10 +32,19 @@ + + /* Header attached to all data items entered into a hash table. */ + ++#if defined(__sparc__) && defined(__NetBSD__) ++/* time_t is bigger than a pointer and needs natural alignement */ ++#define ARCH_ALIGNMENT 8 ++#endif ++ + struct hashhdr + { + struct item * next; +-}; ++} ++#ifdef ARCH_ALIGNMENT ++ __attribute__((aligned(ARCH_ALIGNMENT))) ++#endif ++; + + typedef struct item + { |