diff options
-rw-r--r-- | common/misc.c | 2 | ||||
-rw-r--r-- | net/eth.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/common/misc.c b/common/misc.c index 9fded4bbbe..121d51d9a3 100644 --- a/common/misc.c +++ b/common/misc.c @@ -34,7 +34,7 @@ void *sbrk (ptrdiff_t increment) int errno; -void perror(char *s) +void perror(const char *s) { #ifdef CONFIG_ERRNO_MESSAGES char *str; @@ -28,6 +28,7 @@ #include <net.h> #include <miiphy.h> #include <malloc.h> +#include <errno.h> static int enetaddr_set(struct device_d *dev, struct param_d *param, value_t val) { |