From cc80e34cd9b1c03649e01c7ac958baa11329b404 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Sun, 22 Dec 2024 16:56:35 +0100 Subject: [PATCH] cpu/avr8_common: don't implement perror() with stdio_null --- cpu/avr8_common/avr_libc_extra/posix_unistd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpu/avr8_common/avr_libc_extra/posix_unistd.c b/cpu/avr8_common/avr_libc_extra/posix_unistd.c index 55b50f2285..71e6846a74 100644 --- a/cpu/avr8_common/avr_libc_extra/posix_unistd.c +++ b/cpu/avr8_common/avr_libc_extra/posix_unistd.c @@ -177,9 +177,11 @@ ssize_t write(int fd, const void *src, size_t count) #endif } +#ifndef MODULE_STDIO_NULL void perror(const char *s) { printf("%s: %s\n", s, strerror(errno)); } +#endif /** @} */