]> git.ipfire.org Git - thirdparty/kmod.git/blobdiff - testsuite/path.c
testsuite: add function declarations for __xstat family
[thirdparty/kmod.git] / testsuite / path.c
index c1ae4986b865ac314b2830f21265915fff95634b..5a291b1be1b01decef5dd8675c3062b106a7f80c 100644 (file)
@@ -163,8 +163,15 @@ TS_EXPORT int open ## suffix (const char *path, int flags, ...)    \
        return _fn(p, flags);                                   \
 }
 
-/* wrapper template for __xstat family */
+/*
+ * wrapper template for __xstat family
+ * This family got deprecated/dropped in glibc 2.32.9000, but we still need
+ * to keep it for a while for programs that were built against previous versions
+ */
 #define WRAP_VERSTAT(prefix, suffix)                       \
+TS_EXPORT int prefix ## stat ## suffix (int ver,           \
+                             const char *path,             \
+                             struct stat ## suffix *st);   \
 TS_EXPORT int prefix ## stat ## suffix (int ver,           \
                              const char *path,             \
                              struct stat ## suffix *st)    \