summaryrefslogtreecommitdiff
path: root/inputmethod/librime/patches/patch-src_dict_table.cc
diff options
context:
space:
mode:
Diffstat (limited to 'inputmethod/librime/patches/patch-src_dict_table.cc')
-rw-r--r--inputmethod/librime/patches/patch-src_dict_table.cc14
1 files changed, 9 insertions, 5 deletions
diff --git a/inputmethod/librime/patches/patch-src_dict_table.cc b/inputmethod/librime/patches/patch-src_dict_table.cc
index 1668deba828..f740ce6e02e 100644
--- a/inputmethod/librime/patches/patch-src_dict_table.cc
+++ b/inputmethod/librime/patches/patch-src_dict_table.cc
@@ -1,13 +1,17 @@
-$NetBSD: patch-src_dict_table.cc,v 1.1 2015/04/14 14:38:05 joerg Exp $
+$NetBSD: patch-src_dict_table.cc,v 1.2 2015/04/21 13:59:31 hiramatsu Exp $
---- src/dict/table.cc.orig 2013-11-10 10:20:21.000000000 +0000
-+++ src/dict/table.cc
-@@ -403,14 +403,15 @@ bool Table::BuildEntryList(const DictEnt
+Entries in the output file are generally not correctly aligned,
+so tell the compiler explicitly about this fact and use memcpy
+for writing the data.
+
+--- src/dict/table.cc.orig 2013-11-10 19:20:21.000000000 +0900
++++ src/dict/table.cc 2015-04-18 12:14:33.000000000 +0900
+@@ -403,14 +403,15 @@
return true;
}
-bool Table::BuildEntry(const DictEntry &dict_entry, table::Entry *entry) {
-+bool Table::BuildEntry(const DictEntry &dict_entry, __attribute__((aligned(1))) table::Entry *entry) {
++bool Table::BuildEntry(const DictEntry &dict_entry, table::Entry * __attribute__((aligned(1))) entry) {
if (!entry)
return false;
if (!CopyString(dict_entry.text, &entry->text)) {