From: Ammar Faizi <ammarfaizi2@xxxxxxxxxxx> Support nolibc build for arm64. Signed-off-by: Ammar Faizi <ammarfaizi2@xxxxxxxxxxx> --- src/lib.h | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/lib.h b/src/lib.h index 6672cc5..e1419f8 100644 --- a/src/lib.h +++ b/src/lib.h @@ -8,16 +8,19 @@ #define __INTERNAL__LIBURING_LIB_H #if defined(__x86_64__) || defined(__i386__) - #include "arch/x86/lib.h" +#include "arch/x86/lib.h" +#elif defined(__aarch64__) +#include "arch/arm64/lib.h" #else - /* - * We don't have nolibc support for this arch. Must use libc! - */ - #ifdef CONFIG_NOLIBC - #error "This arch doesn't support building liburing without libc" - #endif - /* libc wrappers. */ - #include "arch/generic/lib.h" +/* + * We don't have nolibc support for this arch. Must use libc! + */ +#ifdef CONFIG_NOLIBC +#error "This arch doesn't support building liburing without libc" +#endif + +/* libc wrappers. */ +#include "arch/generic/lib.h" #endif #undef __INTERNAL__LIBURING_LIB_H -- Ammar Faizi