1 #[cfg(target_os = "dragonfly")] 2 extern crate cc; 3 4 #[cfg(target_os = "dragonfly")] main()5 fn main() { 6 cc::Build::new() 7 .file("src/errno_dragonfly.c") 8 .compile("liberrno_dragonfly.a"); 9 } 10 11 #[cfg(not(target_os = "dragonfly"))] main()12 fn main() {} 13