summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authordhivael <dhivael.git@eno.space>2017-05-31 21:37:15 +0200
committerdhivael <dhivael.git@eno.space>2017-05-31 21:37:15 +0200
commitdf29db681990a8163dda34ee37639300c1859e2a (patch)
tree8640fbcfa0e0955a736b1492a10f9cfd515193c7
parent8ac5ecc41718c4a5c3334e0f61566281a485447f (diff)
declare support for linux only
-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;