[PATCH xserver 1/2] meson: Restore stub ossupport

Jon Turney jon.turney at dronecode.org.uk
Sun Jun 18 11:18:15 UTC 2017


Don't build BSD ossupport when there is no specific support, build stubs

Signed-off-by: Jon Turney <jon.turney at dronecode.org.uk>
---
 hw/xfree86/os-support/meson.build | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/hw/xfree86/os-support/meson.build b/hw/xfree86/os-support/meson.build
index e48944761..dfb613e32 100644
--- a/hw/xfree86/os-support/meson.build
+++ b/hw/xfree86/os-support/meson.build
@@ -73,7 +73,7 @@ elif host_machine.system() == 'solaris'
     endif
 
     os_support_flags += '-DHAVE_SYSV_IPC'
-else
+elif host_machine.system().endswith('bsd')
     srcs_xorg_os_support += [
         'bsd/bsd_VTsw.c',
         'bsd/bsd_bell.c',
@@ -109,6 +109,21 @@ else
     else
         srcs_xorg_os_support += 'shared/agp_noop.c'
     endif
+else
+    # stub ossupport
+    srcs_xorg_os_support += [
+        'shared/VTsw_noop.c',
+        'shared/agp_noop.c',
+        'shared/ioperm_noop.c',
+        'shared/kmod_noop.c',
+        'shared/pm_noop.c',
+        'shared/vidmem.c',
+        'shared/posix_tty.c',
+        'shared/sigio.c',
+        'stub/stub_bell.c',
+        'stub/stub_init.c',
+        'stub/stub_video.c',
+    ]
 endif
 
 xorg_os_support = static_library('xorg_os_support',
-- 
2.12.3



More information about the xorg-devel mailing list