Skip to content

Always Use 64-Bit Version Of readdir()#2

Open
TheBrokenRail wants to merge 1 commit intoMFDGaming:mainfrom
TheBrokenRail:fix-readdir
Open

Always Use 64-Bit Version Of readdir()#2
TheBrokenRail wants to merge 1 commit intoMFDGaming:mainfrom
TheBrokenRail:fix-readdir

Conversation

@TheBrokenRail
Copy link
Contributor

@TheBrokenRail TheBrokenRail commented Dec 3, 2025

This fixes readdir() failing with EOVERFLOW (and thus returning no files) when used on a 64-bit filesystem.

This is the equivalent of https://gitea.thebrokenrail.com/minecraft-pi-reborn/minecraft-pi-reborn/src/commit/1a4a30d62324d642564271152e2e69de188e7ae4/mods/src/compat/readdir.cpp.

@MFDGaming
Copy link
Owner

MFDGaming commented Dec 10, 2025

This fixes readdir() failing with EOVERFLOW (and thus returning no files) when used on a 64-bit filesystem.

This is the equivalent of https://gitea.thebrokenrail.com/minecraft-pi-reborn/minecraft-pi-reborn/src/commit/1a4a30d62324d642564271152e2e69de188e7ae4/mods/src/compat/readdir.cpp.

Does this also exist on non gnu libc implementations, e.x. musl?

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.

2 participants