diff options
Diffstat (limited to 'rustables/src/batch.rs')
-rw-r--r-- | rustables/src/batch.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rustables/src/batch.rs b/rustables/src/batch.rs index c4cd6cb..3cdd52b 100644 --- a/rustables/src/batch.rs +++ b/rustables/src/batch.rs @@ -10,6 +10,7 @@ use thiserror::Error; #[error("Error while communicating with netlink")] pub struct NetlinkError(()); +#[cfg(feature = "query")] /// Check if the kernel supports batched netlink messages to netfilter. pub fn batch_is_supported() -> std::result::Result<bool, NetlinkError> { match unsafe { sys::nftnl_batch_is_supported() } { |