Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for musl #42

Merged
merged 1 commit into from
Sep 3, 2021
Merged

add support for musl #42

merged 1 commit into from
Sep 3, 2021

Conversation

jsen-
Copy link
Contributor

@jsen- jsen- commented Aug 18, 2021

ioctl has a different signature in musl compared to libc

musl: https://git.musl-libc.org/cgit/musl/tree/src/misc/ioctl.c?h=3f701faace7addc75d16dea8a6cd769fa5b3f260#n123

int ioctl(int fd, int req, ...);

libc: https://man7.org/linux/man-pages/man2/ioctl.2.html

int ioctl(int fd, unsigned long request, ...);

there seems to be identical conditional for android, so I just updated it to deal with musl
with this change it compiles on both x86_64-unknown-linux-musl and x86_64-unknown-linux-gnu but I haven't tested any other target

@flxo
Copy link
Contributor

flxo commented Sep 3, 2021

@mdaffin Can we get this merged? Looks pretty trivial.

@mdaffin
Copy link
Owner

mdaffin commented Sep 3, 2021

Yes sorry, didn't get notified for this for some reason. LGTM 👍

@mdaffin mdaffin merged commit 5e7cbb3 into mdaffin:master Sep 3, 2021
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