Skip to content

Commit 98d09e7

Browse files
committed
Remove time.daylight from freebsd
1 parent 7ae9432 commit 98d09e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vm/src/stdlib/time.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pub(crate) fn make_module(vm: &VirtualMachine) -> PyRef<PyModule> {
1818
#[cfg(not(target_env = "msvc"))]
1919
#[cfg(not(target_arch = "wasm32"))]
2020
extern "C" {
21+
#[cfg(not(target_os = "freebsd"))]
2122
#[link_name = "daylight"]
2223
static c_daylight: std::ffi::c_int;
2324
// pub static dstbias: std::ffi::c_int;
@@ -163,6 +164,7 @@ mod decl {
163164
unsafe { super::c_timezone }
164165
}
165166

167+
#[cfg(not(target_os = "freebsd"))]
166168
#[cfg(not(target_env = "msvc"))]
167169
#[cfg(not(target_arch = "wasm32"))]
168170
#[pyattr]

0 commit comments

Comments
 (0)