From 3c28d298f7848c94104b80fadf5352ba46c2de0c Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Tue, 10 Mar 2026 13:10:07 -0400 Subject: [PATCH] kernel: Don't fail if the private string.h is included under GCC2. --- headers/private/kernel/string.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/headers/private/kernel/string.h b/headers/private/kernel/string.h index 9af4e94157..f04596c6e9 100644 --- a/headers/private/kernel/string.h +++ b/headers/private/kernel/string.h @@ -9,10 +9,12 @@ #include_next +#if defined(__GNUC__) && __GNUC__ >= 4 #define memset(DEST, V, LEN) __builtin_memset((DEST), (V), (LEN)) #define memcpy(DEST, SRC, LEN) __builtin_memcpy((DEST), (SRC), (LEN)) #define memmove(DEST, SRC, LEN) __builtin_memmove((DEST), (SRC), (LEN)) #define memcmp(B1, B2, LEN) __builtin_memcmp((B1), (B2), (LEN)) +#endif #endif /* KERNEL_STRING_H */