mirror of
git://sourceware.org/git/valgrind.git
synced 2026-01-12 00:19:31 +08:00
libcfile VG_(lstat): make the #else #elif darwin
and add a proper #else with a #error, which was missing
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user