Bug 1048064 - Fix libstagefright build on GNU/kFreeBSD. r=ajones, a=NPOTB
authorMike Hommey <mh+mozilla@glandium.org>
Tue, 05 Aug 2014 16:07:28 +0900
changeset 208286 2e0eeb786e7d
parent 208285 1b581df81c9b
child 208287 92c3567e5a0c
push id3803
push userryanvm@gmail.com
push date2014-08-11 14:14 +0000
treeherdermozilla-beta@92c3567e5a0c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersajones, NPOTB
bugs1048064
milestone32.0
Bug 1048064 - Fix libstagefright build on GNU/kFreeBSD. r=ajones, a=NPOTB
media/libstagefright/moz.build
--- a/media/libstagefright/moz.build
+++ b/media/libstagefright/moz.build
@@ -18,24 +18,26 @@ if CONFIG['OS_TARGET'] == 'WINNT':
         DEFINES['strncasecmp'] = 'strnicmp'
     DEFINES['HAVE_MS_C_RUNTIME'] = True
     DEFINES['__PRETTY_FUNCTION__'] = '__FUNCTION__'
     LOCAL_INCLUDES += [ 'ports/win32/include' ]
 elif CONFIG['OS_TARGET'] == 'Darwin':
     DEFINES['HAVE_SYS_UIO_H'] = True
     DEFINES['off64_t'] = 'off_t'
     LOCAL_INCLUDES += [ 'ports/darwin/include' ]
-elif CONFIG['OS_TARGET'] in ('DragonFly', 'FreeBSD', 'OpenBSD', 'NetBSD'):
-    if not CONFIG['OS_TARGET'] == 'NetBSD':
+elif CONFIG['OS_TARGET'] in ('DragonFly', 'FreeBSD', 'OpenBSD', 'NetBSD',
+        'GNU/kFreeBSD'):
+    if CONFIG['OS_TARGET'] != 'NetBSD':
         DEFINES['ENODATA'] = '-0x80000003'
     if CONFIG['OS_TARGET'] == 'OpenBSD':
         DEFINES['EBADMSG'] = '-0x80000006'
     DEFINES['HAVE_SYS_UIO_H'] = True
-    DEFINES['off64_t'] = 'off_t'
-    LOCAL_INCLUDES += [ 'ports/bsd/include' ]
+    if CONFIG['OS_TARGET'] != 'GNU/kFreeBSD':
+        DEFINES['off64_t'] = 'off_t'
+        LOCAL_INCLUDES += [ 'ports/bsd/include' ]
 else:
     DEFINES['HAVE_SYS_UIO_H'] = True
 
 if CONFIG['OS_TARGET'] != 'Android':
     DEFINES['FAKE_LOG_DEVICE'] = True
     SOURCES += [
         'system/core/liblog/fake_log_device.c',
     ]