Skip to content

Commit bd03847

Browse files
committed
scproxy
1 parent fb395bd commit bd03847

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

stdlib/src/lib.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ mod posixsubprocess;
3939
// libc is missing constants on redox
4040
#[cfg(all(unix, not(target_os = "redox")))]
4141
mod resource;
42-
// #[cfg(target_os = "macos")]
43-
// mod scproxy;
42+
#[cfg(target_os = "macos")]
43+
mod scproxy;
4444
#[cfg(not(target_arch = "wasm32"))]
4545
mod select;
4646
#[cfg(not(target_arch = "wasm32"))]
@@ -129,5 +129,9 @@ pub fn get_module_inits() -> StdlibMap {
129129
"_posixsubprocess" => posixsubprocess::make_module,
130130
"syslog" => syslog::make_module,
131131
}
132+
#[cfg(target_os = "macos")]
133+
{
134+
"_scproxy" => scproxy::make_module,
135+
}
132136
}
133137
}

stdlib/src/scproxy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pub(crate) use _scproxy::make_module;
44
mod _scproxy {
55
// straight-forward port of Modules/_scproxy.c
66

7-
use crate::{
7+
use crate::vm::{
88
builtins::{PyDictRef, PyStr},
99
IntoPyObject, ItemProtocol, PyResult, VirtualMachine,
1010
};

0 commit comments

Comments
 (0)