source: branches/packages_10.03.1/net/asterisk-1.8.x/patches/300-word_alignment_arm.patch @ 29476

Last change on this file since 29476 was 29476, checked in by jow, 5 years ago

[packages_10.03.1] merge asterisk-1.8.x updates

File size: 677 bytes
  • main/utils.c

    a b ast_string_field __ast_string_field_allo 
    16661666        } 
    16671667 
    16681668        result = (*pool_head)->base + (*pool_head)->used; 
    1669 #ifdef __sparc__ 
     1669#if defined(__sparc__) || defined(__arm__) 
    16701670        /* SPARC requires that the allocation field be aligned. */ 
    16711671        if ((long) result % sizeof(ast_string_field_allocation)) { 
    16721672                result++; 
    void __ast_string_field_ptr_build_va(str 
    17471747                } 
    17481748        } else { 
    17491749                target = (*pool_head)->base + (*pool_head)->used + sizeof(ast_string_field_allocation); 
    1750 #ifdef __sparc__ 
     1750#if defined(__sparc__) || defined(__arm__) 
    17511751                if ((long) target % sizeof(ast_string_field_allocation)) { 
    17521752                        target++; 
    17531753                        space--; 
Note: See TracBrowser for help on using the repository browser.