Just as we check for it in autotools, check for it in CMake.
Change-Id: I342a3fcde6a5f8190dac67260f25c070b6f5430f
Reviewed-on: https://code.wireshark.org/review/6314
Reviewed-by: Guy Harris <guy@alum.mit.edu>
}"
HAVE_NL80211_CMD_SET_CHANNEL
)
+check_c_source_compiles(
+ "#include <linux/nl80211.h>
+ int main() {
+ enum nl80211_protocol_features x = NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP;
+ }"
+ HAVE_NL80211_SPLIT_WIPHY_DUMP
+)
check_c_source_compiles(
"#include <linux/nl80211.h>
int main() {
}"
HAVE_NL80211
)
-
/* SET_CHANNEL is supported */
#cmakedefine HAVE_NL80211_CMD_SET_CHANNEL 1
+/* SPLIT_WIPHY_DUMP is supported */
+#cmakedefine HAVE_NL80211_SPLIT_WIPHY_DUMP 1
+
/* Define to 1 if you have the <Ntddndis.h> header file. */
#cmakedefine HAVE_NTDDNDIS_H 1