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

only use 64 bit variant of statvfs if supported/defined #555

Closed
wants to merge 1 commit into from
Closed

only use 64 bit variant of statvfs if supported/defined #555

wants to merge 1 commit into from

Conversation

Im-0xea
Copy link

@Im-0xea Im-0xea commented Jun 14, 2023

I was testing btop on risc-v with musl libc and everything seams to be working perfectly!, but to build it I had to replace statvfs64 with statvfs, since statvfs64 is only defined on musl when _LARGEFILE_SOURCE64 is defined (which for some reason it was not) you could also just forcefully define it, causing musl to just define statvfs64 as statvfs, but I think my change should be quite portable, and not result in any unneeded step downs.

@Im-0xea Im-0xea changed the title only use 64 bit variant of statvfs if supported only use 64 bit variant of statvfs if supported/defined Jun 14, 2023
@Im-0xea Im-0xea closed this Jun 15, 2023
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