Skip to content

Commit

Permalink
cpu/avr8_common: don't implement perror() with stdio_null
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Dec 22, 2024
1 parent 3cd06eb commit cc80e34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpu/avr8_common/avr_libc_extra/posix_unistd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

/** @} */

0 comments on commit cc80e34

Please sign in to comment.