From 0a781424e6bf11d8c6dff50f3a16c9dbb9690cec Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Wed, 13 Oct 2021 21:26:53 -0300 Subject: [PATCH] meson:avtp: Error out if sock_txtime is not present and avtp is enabled Part-of: --- subprojects/gst-plugins-bad/ext/avtp/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/ext/avtp/meson.build b/subprojects/gst-plugins-bad/ext/avtp/meson.build index 4b6c0022bf..a04acda549 100644 --- a/subprojects/gst-plugins-bad/ext/avtp/meson.build +++ b/subprojects/gst-plugins-bad/ext/avtp/meson.build @@ -17,7 +17,7 @@ avtp_sources = [ avtp_dep = dependency('', required: false) avtp_option = get_option('avtp') -if host_machine.system() != 'linux' +if host_machine.system() != 'linux' or not cc.has_type('struct sock_txtime', prefix : '#include ') if avtp_option.enabled() error('avtp plugin enabled but host is not supported') else @@ -28,7 +28,7 @@ endif avtp_dep = dependency('avtp', required: avtp_option, fallback: ['avtp', 'avtp_dep']) -if avtp_dep.found() and cc.has_type('struct sock_txtime', prefix : '#include ') +if avtp_dep.found() gstavtp = library('gstavtp', avtp_sources, c_args : gst_plugins_bad_args,