components/desktop/firefox/patches/firefox-40-libstagefright.patch
branchs11u3-sru
changeset 7035 4c2f26e9d5ab
equal deleted inserted replaced
7034:55c87002c655 7035:4c2f26e9d5ab
       
     1 Do not use certain header files. We define bswap_16 ourselves.
       
     2 Do not plan to send upstream.
       
     3 
       
     4 diff --git a/media/libstagefright/moz.build b/media/libstagefright/moz.build
       
     5 --- a/media/libstagefright/moz.build
       
     6 +++ b/media/libstagefright/moz.build
       
     7 @@ -2,17 +2,17 @@
       
     8  # vim: set filetype=python:
       
     9  # This Source Code Form is subject to the terms of the Mozilla Public
       
    10  # License, v. 2.0. If a copy of the MPL was not distributed with this
       
    11  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
       
    12  
       
    13  DEFINES['ANDROID_SMP'] = 0
       
    14  DEFINES['LOG_NDEBUG'] = 1
       
    15  
       
    16 -if CONFIG['OS_TARGET'] != 'WINNT':
       
    17 +if CONFIG['OS_TARGET'] != 'WINNT' and CONFIG['OS_TARGET'] != 'SunOS':
       
    18     DEFINES['_GLIBCXX_OS_DEFINES'] = True
       
    19  
       
    20  if CONFIG['OS_TARGET'] == 'WINNT':
       
    21      if CONFIG['_MSC_VER']:
       
    22          DEFINES['ssize_t'] = 'intptr_t'
       
    23          DEFINES['off64_t'] = 'int64_t'
       
    24          DEFINES['strcasecmp'] = 'stricmp'
       
    25          DEFINES['strncasecmp'] = 'strnicmp'