Ticket #8132: 010-main_code_fix.patch

File 010-main_code_fix.patch, 861 bytes (added by twinclouds <twinclouds2004@…>, 7 years ago)
  • main/utils.c

    a b ASTERISK_FILE_VERSION(__FILE__, "$Revisi 
    6161 
    6262#define AST_API_MODULE 
    6363#include "asterisk/config.h" 
     64#define __arm__ 1 
    6465 
    6566static char base64[64]; 
    6667static char b2a[256]; 
    ast_string_field __ast_string_field_allo 
    16321633        } 
    16331634 
    16341635        result = (*pool_head)->base + (*pool_head)->used; 
    1635 #ifdef __sparc__ 
     1636#if defined(__sparc__) || defined(__arm__) 
    16361637        /* SPARC requires that the allocation field be aligned. */ 
    16371638        if ((long) result % sizeof(ast_string_field_allocation)) { 
    16381639                result++; 
    void __ast_string_field_ptr_build_va(str 
    17131714                } 
    17141715        } else { 
    17151716                target = (*pool_head)->base + (*pool_head)->used + sizeof(ast_string_field_allocation); 
    1716 #ifdef __sparc__ 
     1717#if defined(__sparc__) || defined(__arm__) 
    17171718                if ((long) target % sizeof(ast_string_field_allocation)) { 
    17181719                        target++; 
    17191720                        space--;