Skip to content

Conversation

@newpavlov
Copy link
Member

Based on #760

@newpavlov newpavlov requested a review from josephlr December 3, 2025 17:13
@newpavlov newpavlov changed the title Replace util_libc with impl_utils macro Replace util_libc and sanitizer with impl_utils macro Dec 3, 2025
@newpavlov newpavlov changed the title Replace util_libc and sanitizer with impl_utils macro Replace util_libc and sanitizer modules with impl_utils macro Dec 3, 2025
(get_errno) => {
cfg_if! {
if #[cfg(any(target_os = "netbsd", target_os = "openbsd", target_os = "android", target_os = "cygwin"))] {
use libc::__errno as errno_location;
Copy link
Member Author

@newpavlov newpavlov Dec 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, we could move these imports into backends, but I think it will result in a more convoluted and harder to review code.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

personal opinion: that would be better

Copy link
Contributor

@tamird tamird left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

(get_errno) => {
cfg_if! {
if #[cfg(any(target_os = "netbsd", target_os = "openbsd", target_os = "android", target_os = "cygwin"))] {
use libc::__errno as errno_location;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

personal opinion: that would be better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants