diff --git a/src/os/unix/consts.rs b/src/os/unix/consts.rs index 2ef81aac8..f7915c69e 100644 --- a/src/os/unix/consts.rs +++ b/src/os/unix/consts.rs @@ -87,6 +87,7 @@ mod posix { target_os = "fuchsia", target_os = "redox", target_os = "nto", + target_os = "qnx", target_os = "hurd", target_os = "cygwin", ))] { @@ -128,6 +129,7 @@ mod posix { target_os = "fuchsia", target_os = "redox", target_os = "nto", + target_os = "qnx", target_os = "hurd", target_os = "cygwin", ))] { @@ -183,6 +185,7 @@ mod posix { target_os = "fuchsia", target_os = "redox", target_os = "nto", + target_os = "qnx", target_os = "hurd", ))] { pub(super) const RTLD_GLOBAL: c_int = 0x100; @@ -197,6 +200,7 @@ mod posix { if #[cfg(any( target_os = "netbsd", target_os = "nto", + target_os = "qnx", ))] { pub(super) const RTLD_LOCAL: c_int = 0x200; } else if #[cfg(target_os = "aix")] { diff --git a/tests/library_filename.rs b/tests/library_filename.rs index 7029e0a72..be2f5b858 100644 --- a/tests/library_filename.rs +++ b/tests/library_filename.rs @@ -10,6 +10,8 @@ mod test { const EXPECTED: &str = "libaudioengine.so"; #[cfg(target_os = "macos")] const EXPECTED: &str = "libaudioengine.dylib"; + #[cfg(target_os = "qnx")] + const EXPECTED: &str = "libaudioengine.so"; #[test] fn test_library_filename() {