diff --git a/cpu/avr8_common/avr_libc_extra/posix_unistd.c b/cpu/avr8_common/avr_libc_extra/posix_unistd.c index 05aa350997..55b50f2285 100644 --- a/cpu/avr8_common/avr_libc_extra/posix_unistd.c +++ b/cpu/avr8_common/avr_libc_extra/posix_unistd.c @@ -177,4 +177,9 @@ ssize_t write(int fd, const void *src, size_t count) #endif } +void perror(const char *s) +{ + printf("%s: %s\n", s, strerror(errno)); +} + /** @} */