1 extern crate libc; 2 extern crate libloading; 3 extern crate static_assertions; 4 5 #[cfg(all(test, unix))] 6 mod unix { 7 use super::static_assertions::const_assert_eq; 8 9 const_assert_eq!(libloading::os::unix::RTLD_LOCAL, libc::RTLD_LOCAL); 10 const_assert_eq!(libloading::os::unix::RTLD_GLOBAL, libc::RTLD_GLOBAL); 11 const_assert_eq!(libloading::os::unix::RTLD_NOW, libc::RTLD_NOW); 12 const_assert_eq!(libloading::os::unix::RTLD_LAZY, libc::RTLD_LAZY); 13 } 14