mirror of
https://github.com/mii443/tokenizers.git
synced 2025-12-05 12:18:20 +00:00
Try with target_family = unix
This commit is contained in:
@@ -104,7 +104,7 @@ fn normalizers(_py: Python, m: &PyModule) -> PyResult<()> {
|
||||
#[pymodule]
|
||||
fn tokenizers(_py: Python, m: &PyModule) -> PyResult<()> {
|
||||
// Register the fork callback
|
||||
#[cfg(target_os = "linux")]
|
||||
#[cfg(target_family = "unix")]
|
||||
unsafe {
|
||||
if !REGISTERED_FORK_CALLBACK {
|
||||
libc::pthread_atfork(None, None, Some(child_after_fork));
|
||||
|
||||
Reference in New Issue
Block a user