aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/liburing/test/nolibc.c
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2024-06-09 11:55:21 +0300
committerthegeorg <thegeorg@yandex-team.com>2024-06-09 12:07:55 +0300
commitafd4899380eea1c70e2a68714b5da1c9919ccdbd (patch)
treecd5120708784139bc6a0f8881da1ed8389a065b3 /contrib/libs/liburing/test/nolibc.c
parenta83bd2dd3c21e38c6c0807ec5e679497ab567f24 (diff)
downloadydb-afd4899380eea1c70e2a68714b5da1c9919ccdbd.tar.gz
Update contrib/libs/liburing to 2.6
3b51a9fb14de805208d11f1c077c78bb5d487e0f
Diffstat (limited to 'contrib/libs/liburing/test/nolibc.c')
-rw-r--r--contrib/libs/liburing/test/nolibc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/contrib/libs/liburing/test/nolibc.c b/contrib/libs/liburing/test/nolibc.c
index fd07fa13cd..e6ae6057bc 100644
--- a/contrib/libs/liburing/test/nolibc.c
+++ b/contrib/libs/liburing/test/nolibc.c
@@ -7,11 +7,13 @@
* 1) x86
* 2) x86-64
* 3) aarch64
+ * 4) riscv64
*
*/
#include "helpers.h"
-#if !defined(__x86_64__) && !defined(__i386__) && !defined(__aarch64__)
+#if !defined(__x86_64__) && !defined(__i386__) && !defined(__aarch64__) && (!defined(__riscv) && __riscv_xlen != 64)
+
/*
* This arch doesn't support nolibc.
@@ -21,7 +23,7 @@ int main(void)
return T_EXIT_SKIP;
}
-#else /* #if !defined(__x86_64__) && !defined(__i386__) && !defined(__aarch64__) */
+#else /* #if !defined(__x86_64__) && !defined(__i386__) && !defined(__aarch64__) && (!defined(__riscv) && __riscv_xlen != 64) */
#ifndef CONFIG_NOLIBC
#define CONFIG_NOLIBC
@@ -58,4 +60,4 @@ int main(int argc, char *argv[])
return T_EXIT_PASS;
}
-#endif /* #if !defined(__x86_64__) && !defined(__i386__) && !defined(__aarch64__) */
+#endif /* #if !defined(__x86_64__) && !defined(__i386__) && !defined(__aarch64__) && (!defined(__riscv) && __riscv_xlen != 64) */