components/desktop/thunderbird/patches/thunderbird31-503-append-ffssi2-symbol.patch
changeset 5527 611b2d6efdfe
parent 5526 570ac9aab8b2
child 5528 f2f5af510081
equal deleted inserted replaced
5526:570ac9aab8b2 5527:611b2d6efdfe
     1 SPARC architecture specific patch. Probably cannot send upstream.  
       
     2 
       
     3 --- comm-esr31/mozilla/js/src/ctypes/libffi/src/closures.c.orig	2015-05-07 22:39:07.816379536 +0530
       
     4 +++ comm-esr31/mozilla/js/src/ctypes/libffi/src/closures.c	2015-05-07 22:39:42.088095728 +0530
       
     5 @@ -608,3 +608,12 @@ ffi_closure_free (void *ptr)
       
     6  
       
     7  # endif /* ! FFI_MMAP_EXEC_WRIT */
       
     8  #endif /* FFI_CLOSURES */
       
     9 +
       
    10 +#ifdef __sparc
       
    11 +#include <strings.h>
       
    12 +int
       
    13 +__ffssi2 (int x)
       
    14 +{
       
    15 +ffs (x);
       
    16 +}
       
    17 +#endif