From fdb1190cfa107d4ed7e00d64d3e21b4b88f115a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Kijewski?= Date: Tue, 11 Nov 2014 10:45:36 +0100 Subject: [PATCH 1/2] avr: define ssize_t --- cpu/atmega_common/include/sys/types.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cpu/atmega_common/include/sys/types.h b/cpu/atmega_common/include/sys/types.h index 34f727d489..42b4c964f6 100644 --- a/cpu/atmega_common/include/sys/types.h +++ b/cpu/atmega_common/include/sys/types.h @@ -9,4 +9,10 @@ #include #include +#ifndef AVR_TYPES_H +#define AVR_TYPES_H + typedef int16_t suseconds_t; +typedef signed int ssize_t; + +#endif /* ifndef AVR_TYPES_H */ From 23177e532698484a7c44bd5ed302213ff0fc2925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Kijewski?= Date: Tue, 11 Nov 2014 11:42:44 +0100 Subject: [PATCH 2/2] Remove special case for atmega in kernel_types.h --- core/include/kernel_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/include/kernel_types.h b/core/include/kernel_types.h index d52a1e01cd..992015342a 100644 --- a/core/include/kernel_types.h +++ b/core/include/kernel_types.h @@ -40,7 +40,7 @@ # endif # endif -# if defined (MODULE_MSP430_COMMON) || defined (MODULE_ATMEGA_COMMON) +# ifdef MODULE_MSP430_COMMON typedef signed ssize_t; # endif #endif