2021-12-07 20:32:57 +01:00
|
|
|
diff -uNr valgrind-3.16.1/coregrind/m_aspacemgr/aspacemgr-common.c valgrind-3.16.1.mod/coregrind/m_aspacemgr/aspacemgr-common.c
|
2022-01-02 11:44:08 +01:00
|
|
|
--- ./coregrind/m_aspacemgr/aspacemgr-common.c.orig 2021-10-10 16:17:32.000000000 +0200
|
|
|
|
+++ ./coregrind/m_aspacemgr/aspacemgr-common.c 2022-01-02 11:31:30.967514202 +0100
|
|
|
|
@@ -330,6 +330,7 @@
|
2020-10-01 17:24:23 +02:00
|
|
|
# if defined(VGO_linux) || defined(VGO_darwin)
|
|
|
|
SysRes res;
|
|
|
|
# if defined(VGO_linux)
|
|
|
|
+#ifndef __ANDROID__
|
|
|
|
/* First try with statx. */
|
|
|
|
struct vki_statx bufx;
|
|
|
|
const char* file_name = "";
|
2022-01-02 11:44:08 +01:00
|
|
|
@@ -341,6 +342,7 @@
|
2020-10-01 17:24:23 +02:00
|
|
|
*mode = (UInt)bufx.stx_mode;
|
|
|
|
return True;
|
|
|
|
}
|
|
|
|
+#endif
|
2022-01-02 11:44:08 +01:00
|
|
|
# endif // VGO_linux only
|
|
|
|
|
2020-10-01 17:24:23 +02:00
|
|
|
# if defined(VGO_linux) && defined(__NR_fstat64)
|
2022-01-02 11:44:08 +01:00
|
|
|
|
2021-12-07 20:32:57 +01:00
|
|
|
diff -uNr valgrind-3.16.1/coregrind/m_libcfile.c valgrind-3.16.1.mod/coregrind/m_libcfile.c
|
|
|
|
--- valgrind-3.16.1/coregrind/m_libcfile.c 2019-12-27 16:51:44.000000000 +0200
|
|
|
|
+++ valgrind-3.16.1.mod/coregrind/m_libcfile.c 2020-10-01 18:20:40.369886417 +0300
|
|
|
|
@@ -364,7 +364,7 @@
|
2020-10-01 17:24:23 +02:00
|
|
|
SysRes res;
|
|
|
|
VG_(memset)(vgbuf, 0, sizeof(*vgbuf));
|
|
|
|
|
|
|
|
-# if defined(VGO_linux)
|
|
|
|
+# if defined(VGO_linux) && !defined(__ANDROID__)
|
2020-10-01 12:19:27 +02:00
|
|
|
/* On Linux, first try with statx. If that doesn't work out, fall back to
|
|
|
|
the stat64 or vanilla version. */
|
|
|
|
{ struct vki_statx buf;
|
2021-12-07 20:32:57 +01:00
|
|
|
@@ -434,7 +434,7 @@
|
2020-10-01 17:24:23 +02:00
|
|
|
SysRes res;
|
|
|
|
VG_(memset)(vgbuf, 0, sizeof(*vgbuf));
|
|
|
|
|
|
|
|
-# if defined(VGO_linux)
|
|
|
|
+# if defined(VGO_linux) && !defined(__ANDROID__)
|
|
|
|
/* On Linux, first try with statx. If that doesn't work out, fall back to
|
|
|
|
the fstat64 or vanilla version. */
|
|
|
|
{ struct vki_statx buf;
|