Skip to content

fix(rvlite): macOS linking bug — platform-specific errno#188

Merged
ruvnet merged 1 commit intomainfrom
fix/open-issues-review
Feb 20, 2026
Merged

fix(rvlite): macOS linking bug — platform-specific errno#188
ruvnet merged 1 commit intomainfrom
fix/open-issues-review

Conversation

@ruvnet
Copy link
Copy Markdown
Owner

@ruvnet ruvnet commented Feb 20, 2026

Summary

  • Fix macOS linking failure in rvlite where __errno_location (Linux libc) was used under a generic #[cfg(unix)] guard instead of the macOS equivalent __error

Changes

  • Split extern "C" declarations and errno_location() wrapper in crates/rvlite/src/storage/writer_lease.rs into platform-specific #[cfg(target_os)] blocks
  • Linux/Android: __errno_location()
  • macOS/iOS/FreeBSD: __error()
  • Matches the pattern already used in crates/rvf/rvf-runtime/src/locking.rs

Closes #174

Test plan

  • cargo check -p rvlite passes on Linux
  • Verify linking succeeds on macOS (cross-platform CI)

Generated with claude-flow

rvlite's writer_lease.rs used __errno_location (Linux libc) under a
generic #[cfg(unix)] guard, causing link failures on macOS where the
equivalent is __error. Split the extern and wrapper into separate
#[cfg(target_os)] blocks matching the pattern already used in
rvf-runtime/src/locking.rs.

Closes #174

Co-Authored-By: claude-flow <ruv@ruv.net>
@ruvnet ruvnet merged commit ba66880 into main Feb 20, 2026
6 checks passed
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.

Linking bug in Mac OS

1 participant