Skip to content

Commit 6f9758e

Browse files
committed
linux: add include guard for linux platform
We don't support anything else, but this is probably how things should have been from the start. Signed-off-by: Paul Osborne <[email protected]>
1 parent 7ccf206 commit 6f9758e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ extern crate nix;
2525

2626
mod ffi;
2727
pub mod core;
28-
pub mod linux;
2928
pub mod sensors;
3029

30+
#[cfg(any(target_os = "linux", target_os = "android"))]
31+
pub mod linux;
32+
3133
#[cfg(test)]
3234
pub mod mock;

0 commit comments

Comments
 (0)