Skip to content

build: cast BLKGETSIZE64 to libc::Ioctl - #70

Open
rmitz wants to merge 1 commit into
KarpelesLab:masterfrom
rmitz:build-ioctl-cast
Open

rmitz wants to merge 1 commit into
KarpelesLab:masterfrom
rmitz:build-ioctl-cast

Conversation

@rmitz

@rmitz rmitz commented Nov 11, 2026

Copy link
Copy Markdown

build: cast BLKGETSIZE64 to libc::Ioctl

libc 0.2.173+ changed the type used for the ioctl request argument.
BLKGETSIZE64 is declared as libc::c_ulong, so the call no longer matches
libc::Ioctl on a fresh resolution (currently libc 0.2.191) and the crate
fails to compile before any test runs.

Cast at the call site; the numeric request is unchanged. This is a
prerequisite for the opt-in sirocco encoder PR.

Verification:

cargo check --lib

No behavior change; only the argument type is made explicit.

libc 0.2.173+ changed the ioctl request type; the untyped constant no longer matches on musl/host builds.
@rmitz

rmitz commented Nov 11, 2026

Copy link
Copy Markdown
Author

This is the prerequisite for #71; it lands first so the opt-in sirocco branch can build against current libc.

This branch has not been deployed

No deployments
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.

1 participant