void-packages/srcpkgs/valgrind/patches/test_statx.patch
2021-11-18 23:34:03 +01:00

18 lines
449 B
Diff

--- a/memcheck/tests/linux/sys-statx.c 2021-01-21 15:09:33.000000000 +0000
+++ b/memcheck/tests/linux/sys-statx.c 2021-11-16 20:26:33.970007848 +0000
@@ -7,11 +7,15 @@
#include <assert.h>
#include <string.h>
#include <sys/syscall.h>
+#if defined(__GLIBC__)
#if __GLIBC_PREREQ(2,28)
/* struct statx provided in sys/stat.h */
#else
#include <linux/stat.h>
#endif
+#else
+#include <linux/stat.h>
+#endif
#include <errno.h>
int check_stat2;