]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
libcfile VG_(lstat): make the #else #elif darwin
authorPaul Floyd <pjfloyd@wanadoo.fr>
Thu, 1 Jan 2026 17:56:28 +0000 (18:56 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Thu, 1 Jan 2026 17:56:28 +0000 (18:56 +0100)
and add a proper #else with a #error, which was missing

coregrind/m_libcfile.c

index a84f22ffda6658fcc72d221e51ee441d06e044d3..c4e7dddc1d70bceca1ba7d5021dfbcd33833b4a2 100644 (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)) {