From 7967779e6c6047d5606f1e348275d6a8d63ee670 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Tue, 16 Apr 2013 20:06:01 +0200 Subject: [PATCH 1/3] tapdev: Fix using an uninitialized buffer --- cpu/native/net/tapdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/native/net/tapdev.c b/cpu/native/net/tapdev.c index 7386bdc96..73f3da59d 100644 --- a/cpu/native/net/tapdev.c +++ b/cpu/native/net/tapdev.c @@ -111,7 +111,7 @@ tapdev_init(void) memset(&ifr, 0, sizeof(ifr)); ifr.ifr_flags = IFF_TAP|IFF_NO_PI; if (ioctl(fd, TUNSETIFF, (void *) &ifr) < 0) { - perror(buf); + perror("ioctl(TUNSETIFF)"); exit(1); } } From b9774989a1872315e0a4d6f474b723e47f6d55a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sat, 20 Apr 2013 14:43:37 +0200 Subject: [PATCH 2/3] Add missing include Fix log_message() undefined warning. --- apps/program-handler/program-handler.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/program-handler/program-handler.c b/apps/program-handler/program-handler.c index 6a6f2c090..2af8ca5a4 100644 --- a/apps/program-handler/program-handler.c +++ b/apps/program-handler/program-handler.c @@ -52,6 +52,7 @@ #include "contiki.h" #include "ctk/ctk.h" #include "ctk/ctk-draw.h" +#include "sys/log.h" #include "program-handler.h" From 95eb5053458f2993ca7cfa6c44cff95f47186ddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sat, 20 Apr 2013 14:44:27 +0200 Subject: [PATCH 3/3] win32: Fix cygwin build size_t is declared in sys/types.h --- platform/win32/contiki-conf.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/win32/contiki-conf.h b/platform/win32/contiki-conf.h index c2b20afa5..638e9a637 100644 --- a/platform/win32/contiki-conf.h +++ b/platform/win32/contiki-conf.h @@ -1,6 +1,10 @@ #ifndef __CONTIKI_CONF_H__ #define __CONTIKI_CONF_H__ +#ifdef __CYGWIN__ +#include +#endif + #define CC_CONF_REGISTER_ARGS 1 #define CC_CONF_FASTCALL __fastcall #define CC_CONF_INLINE __inline