libcfile VG_(lstat): make the #else #elif darwin

and add a proper #else with a #error, which was missing
This commit is contained in:
Paul Floyd
2026-01-01 18:56:28 +01:00
parent aa03f7e8d1
commit 3ed264869c

View File

@@ -711,12 +711,16 @@ struct vki_stat buf;
res = VG_(do_syscall4)(__NR_fstatat, VKI_AT_FDCWD, (UWord)file_name, (UWord)&buf, VKI_AT_SYMLINK_NOFOLLOW);
#endif
#else
#elif defined(VGO_darwin)
/* check this on Darwin */
struct vki_stat buf;
res = VG_(do_syscall2)(__NR_lstat, (UWord)file_name, (UWord)&buf);
#else
#error Unknown OS
#endif
if (!sr_isError(res)) {