2011-02-16 20:57:23 +00:00
|
|
|
--- a/main/utils.c
|
|
|
|
+++ b/main/utils.c
|
2011-08-22 11:26:02 +00:00
|
|
|
@@ -1635,7 +1635,7 @@ ast_string_field __ast_string_field_allo
|
2011-02-16 20:57:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
result = (*pool_head)->base + (*pool_head)->used;
|
|
|
|
-#ifdef __sparc__
|
|
|
|
+#if defined(__sparc__) || defined(__mips__) || defined(__arm__)
|
|
|
|
/* SPARC requires that the allocation field be aligned. */
|
|
|
|
if ((long) result % sizeof(ast_string_field_allocation)) {
|
|
|
|
result++;
|
2011-08-22 11:26:02 +00:00
|
|
|
@@ -1716,7 +1716,7 @@ void __ast_string_field_ptr_build_va(str
|
2011-02-16 20:57:23 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
target = (*pool_head)->base + (*pool_head)->used + sizeof(ast_string_field_allocation);
|
|
|
|
-#ifdef __sparc__
|
|
|
|
+#if defined(__sparc__) || defined(__mips__) || defined(__arm__)
|
|
|
|
if ((long) target % sizeof(ast_string_field_allocation)) {
|
|
|
|
target++;
|
|
|
|
space--;
|