test/statx: be safe and check if __NR_statx is there
Probably don't need this, but it's right before release and I'd hate
for a test to cause compilation failure.
#include "liburing.h"
+#ifdef __NR_statx
static int do_statx(int dfd, const char *path, int flags, unsigned mask,
struct statx *statxbuf)
{
return syscall(__NR_statx, dfd, path, flags, mask, statxbuf);
}
+#else
+static int do_statx(int dfd, const char *path, int flags, unsigned mask,
+ struct statx *statxbuf)
+{
+ errno = ENOSYS;
+ return -1;
+}
+#endif
static int create_file(const char *file, size_t size)
{
