mirror of
https://github.com/mii443/tokenizers.git
synced 2025-12-06 20:58:22 +00:00
Try with target_family = unix
This commit is contained in:
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user