Skip to content

Commit 3210fd5

Browse files
authored
Auto merge of rust-lang#36944 - brson:modos, r=alexcrichton
Fix mod declarations on untested platforms r? @alexcrichton
2 parents fd1ea13 + 2e7f796 commit 3210fd5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/libstd/sys/unix/env.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ pub mod os {
140140
}
141141

142142
#[cfg(target_os = "haiku")]
143-
mod os {
143+
pub mod os {
144144
pub const FAMILY: &'static str = "unix";
145145
pub const OS: &'static str = "haiku";
146146
pub const DLL_PREFIX: &'static str = "lib";
@@ -151,7 +151,7 @@ mod os {
151151
}
152152

153153
#[cfg(all(target_os = "emscripten", target_arch = "asmjs"))]
154-
mod os {
154+
pub mod os {
155155
pub const FAMILY: &'static str = "unix";
156156
pub const OS: &'static str = "emscripten";
157157
pub const DLL_PREFIX: &'static str = "lib";
@@ -162,7 +162,7 @@ mod os {
162162
}
163163

164164
#[cfg(all(target_os = "emscripten", target_arch = "wasm32"))]
165-
mod os {
165+
pub mod os {
166166
pub const FAMILY: &'static str = "unix";
167167
pub const OS: &'static str = "emscripten";
168168
pub const DLL_PREFIX: &'static str = "lib";

0 commit comments

Comments
 (0)