blob: 6ae5a8460aef5b287f27625749b6be7df3a7a1b1 [file] [log] [blame]
Haibo Huang32890e12020-08-24 14:31:44 -07001extern crate libc;
David LeGarefaeb5c92022-03-02 16:20:16 +00002extern crate libloading;
Haibo Huang32890e12020-08-24 14:31:44 -07003extern crate static_assertions;
4
5#[cfg(all(test, unix))]
6mod 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}