From d4161bd16ca2ea65ed504af6c10de7587b6d07b3 Mon Sep 17 00:00:00 2001 From: wangmingrong1 Date: Tue, 24 Dec 2024 18:57:18 +0800 Subject: [PATCH] libc/machine: fix config error Signed-off-by: wangmingrong1 --- libs/libc/machine/arch_libc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/libc/machine/arch_libc.c b/libs/libc/machine/arch_libc.c index 00c2939a4df83..023ea07060eca 100644 --- a/libs/libc/machine/arch_libc.c +++ b/libs/libc/machine/arch_libc.c @@ -64,7 +64,7 @@ FAR char *ARCH_LIBCFUN(strcpy)(FAR char *dest, FAR const char *src); size_t ARCH_LIBCFUN(strlen)(FAR const char *s); #endif -#ifdef CONFIG_LIBC_ARCHSTRNCPY +#ifdef CONFIG_LIBC_ARCH_STRNCPY FAR char *ARCH_LIBCFUN(strncpy)(FAR char *dest, FAR const char *src, size_t n); #endif @@ -212,7 +212,7 @@ size_t strlen(FAR const char *s) } #endif -#ifdef CONFIG_LIBC_ARCHSTRNCPY +#ifdef CONFIG_LIBC_ARCH_STRNCPY FAR char *strncpy(FAR char *dest, FAR const char *src, size_t n) { # ifdef CONFIG_MM_KASAN