Try with target_family = unix

This commit is contained in:
Anthony MOI
2020-06-23 16:52:21 -04:00
parent f8b1630aa6
commit bb668bc439

View File

@@ -104,7 +104,7 @@ fn normalizers(_py: Python, m: &PyModule) -> PyResult<()> {
#[pymodule] #[pymodule]
fn tokenizers(_py: Python, m: &PyModule) -> PyResult<()> { fn tokenizers(_py: Python, m: &PyModule) -> PyResult<()> {
// Register the fork callback // Register the fork callback
#[cfg(target_os = "linux")] #[cfg(target_family = "unix")]
unsafe { unsafe {
if !REGISTERED_FORK_CALLBACK { if !REGISTERED_FORK_CALLBACK {
libc::pthread_atfork(None, None, Some(child_after_fork)); libc::pthread_atfork(None, None, Some(child_after_fork));