mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-20 13:26:02 +00:00
fix(storage): preserve the 32-bit readdir ABI
This commit is contained in:
1 parent
0240c75dbd
commit
3bfe004d44
1 file changed
+2
@@ -209,9 +209,11 @@ struct dirent64 *readdir64(DIR *dir) {
|
||||
}
|
||||
|
||||
/* 32- and 64-bit dirent layouts are identical in the supported 64-bit runtimes. */
|
||||
#if __SIZEOF_POINTER__ == 8
|
||||
struct dirent *readdir(DIR *dir) {
|
||||
return (struct dirent *)readdir64(dir);
|
||||
}
|
||||
#endif
|
||||
|
||||
int closedir(DIR *dir) {
|
||||
pthread_once(&hooks_once, init_hooks);
|
||||
|
||||
Reference in new issue
Block a user