summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 6b261e0..4db3923 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,5 +1,7 @@
//! Provides safe access to the `getifaddrs` libc function.
+#![cfg(target_os = "linux")]
+
extern crate errno;
extern crate libc;