diff mbox series

[liburing,v1,8/9] arch: Enable nolibc support for arm64

Message ID 20220629002028.1232579-9-ammar.faizi@intel.com (mailing list archive)
State New
Headers show
Series aarch64 nolibc support | expand

Commit Message

Ammar Faizi June 29, 2022, 12:27 a.m. UTC
From: Ammar Faizi <ammarfaizi2@gnuweeb.org>

Support nolibc build for arm64.

Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
---
 src/lib.h | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)
diff mbox series

Patch

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