summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2021-10-14 14:52:09 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-10-14 14:55:36 +0200
commit6595fc4e99b8b5df3161c9c93f25c54bc417d291 (patch)
tree7435160409ea0a42635e000d8fff9a6154075027 /meson.build
parente161400fe416ee63768bcb1744615e674301acf2 (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 (cherry picked from commit 653b3b847d451d1ce6657ab5b628be1540ce2575)
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build7
1 files changed, 1 insertions, 6 deletions
diff --git a/meson.build b/meson.build
index f0f9fee..3cf17ed 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