summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2021-10-14 14:52:09 +0200
committerIñigo Martínez <inigomartinez@gmail.com>2021-10-14 14:52:09 +0200
commit653b3b847d451d1ce6657ab5b628be1540ce2575 (patch)
treeb640505de6fb572a5607e0eebbf0e95039236c8e
parent698c079fd9950d3ba2324d5d979be304a241e9e4 (diff)
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
-rw-r--r--meson.build7
1 files changed, 1 insertions, 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<linux/if_link.h>')
- 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