summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/misc.c2
-rw-r--r--net/eth.c1
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;
diff --git a/net/eth.c b/net/eth.c
index 974c615cff..4acda47fc2 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -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)
{