diff --git a/lib/std/io/os/fileinfo_other.c3 b/lib/std/io/os/fileinfo_other.c3 index a07096571..a61c5be55 100644 --- a/lib/std/io/os/fileinfo_other.c3 +++ b/lib/std/io/os/fileinfo_other.c3 @@ -109,7 +109,13 @@ $case IOS: $case MACOSX: $case TVOS: $case WATCHOS: + +$if (env::ARCH_TYPE == X86_64) extern fn NativeDirentry* readdir(void*) @extern("readdir$INODE64"); +$else +extern fn NativeDirentry* readdir(void*) @extern("readdir"); +$endif + struct NativeDirentry { usz ino; diff --git a/src/version.h b/src/version.h index 06d543af3..2669c2ee1 100644 --- a/src/version.h +++ b/src/version.h @@ -1 +1 @@ -#define COMPILER_VERSION "0.4.116" \ No newline at end of file +#define COMPILER_VERSION "0.4.117" \ No newline at end of file