From 653b3b847d451d1ce6657ab5b628be1540ce2575 Mon Sep 17 00:00:00 2001 From: Iñigo Martínez Date: Thu, 14 Oct 2021 14:52:09 +0200 Subject: build: Remove the unnecessary check to enable rmnet At the moment, to enable rmnet the `ifla_rmnet_flags` struct is checked in `if_link.h` header. However, this is not necessary because `libqmi` already includes the `if_link_rmnet.h` header. The unnecessary check has been removed. Refs !292 --- meson.build | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/meson.build b/meson.build index b44d183..e88b43a 100644 --- a/meson.build +++ b/meson.build @@ -165,12 +165,7 @@ if enable_bash_completion endif # rmnet link management support -enable_rmnet = false -rmnet = get_option('rmnet') -if not rmnet.disabled() - enable_rmnet = cc.has_type('struct ifla_rmnet_flags', prefix: '#include') - assert(enable_rmnet or rmnet.auto(), 'There is no \'rmnet\' link management support, use \'auto\' or \'disabled\' instead') -endif +enable_rmnet = not get_option('rmnet').disabled() config_h.set('RMNET_SUPPORT_ENABLED', enable_rmnet) # runtime MM check is optional, enabled by default -- cgit v1.2.3