diff options
Diffstat (limited to 'devel/libdatadog/files/patch-ddcommon-src-unix_utils-fork.rs')
-rw-r--r-- | devel/libdatadog/files/patch-ddcommon-src-unix_utils-fork.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/libdatadog/files/patch-ddcommon-src-unix_utils-fork.rs b/devel/libdatadog/files/patch-ddcommon-src-unix_utils-fork.rs new file mode 100644 index 000000000000..fd0ea26196d1 --- /dev/null +++ b/devel/libdatadog/files/patch-ddcommon-src-unix_utils-fork.rs @@ -0,0 +1,11 @@ +--- ddcommon/src/unix_utils/fork.rs.orig 2025-08-22 12:57:44.659695000 +0000 ++++ ddcommon/src/unix_utils/fork.rs 2025-08-22 12:57:54.570083000 +0000 +@@ -1,7 +1,7 @@ + // Copyright 2025-Present Datadog, Inc. https://www.datadoghq.com/ + // SPDX-License-Identifier: Apache-2.0 + +-#[cfg(target_os = "macos")] ++#[cfg(any(target_os = "freebsd", target_os = "macos"))] + pub fn alt_fork() -> i32 { + // There is a lower-level `__fork()` function in macOS, and we can call it from Rust, but the + // runtime is much stricter about which operations (e.g., no malloc) are allowed in the child. |