Bug 1587116 - only include sys/auxv.h on platforms where it might exist r=glandium
authorLandry Breuil <landry@openbsd.org>
Tue, 12 Nov 2019 07:10:12 +0000
changeset 501548 d3885b9d42d38e9685e2f430d99200ec7b719a2c
parent 501547 a4604fe5bc45f73c7b04fefe147b311d4980adc4
child 501549 a6786e02d33794542dbf0a3de5614943807a3ff4
push id36795
push usermalexandru@mozilla.com
push dateTue, 12 Nov 2019 21:49:46 +0000
treeherdermozilla-central@9e3f44e87a1a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1587116
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1587116 - only include sys/auxv.h on platforms where it might exist r=glandium Differential Revision: https://phabricator.services.mozilla.com/D51803
config/system-headers.mozbuild
--- a/config/system-headers.mozbuild
+++ b/config/system-headers.mozbuild
@@ -809,17 +809,16 @@ system_headers = [
     'support/SupportDefs.h',
     'support/TLS.h',
     'svrcore.h',
     'symconst.h',
     'sym.h',
     'synch.h',
     'syncmgr.h',
     'sys/atomic_op.h',
-    'sys/auxv.h',
     'sys/bitypes.h',
     'sys/byteorder.h',
     'syscall.h',
     'sys/cdefs.h',
     'sys/cfgodm.h',
     'sys/elf.h',
     'sys/endian.h',
     'sys/epoll.h',
@@ -1338,15 +1337,20 @@ if CONFIG['MOZ_SYSTEM_ICU']:
 if CONFIG['MOZ_WAYLAND']:
     system_headers += [
         'xkbcommon/xkbcommon.h',
         'wayland-client.h',
         'wayland-egl.h',
         'wayland-util.h',
     ]
 
+if CONFIG['OS_TARGET'] in ('Android', 'Linux', 'FreeBSD'):
+    system_headers += [
+        'sys/auxv.h',
+    ]
+
 if CONFIG['OS_TARGET'] == 'Linux' and CONFIG['CPU_ARCH'].startswith('mips'):
     system_headers += [
         'sys/cachectl.h',
     ]
 
 if CONFIG['MOZ_APP_SYSTEM_HEADERS']:
     include("../" + CONFIG['MOZ_BUILD_APP'] + "/app-system-headers.mozbuild")