Bug 552897 - [runtime.c] reduce warnings using C compiler

Added missing includes.

Change-Id: I6814052eb6ee8b91d81909b70ac6286289b7dc92
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/debugging/etConsoleLogger.c b/runtime/org.eclipse.etrice.runtime.c/src/common/debugging/etConsoleLogger.c
index 60c21cf..f515fe5 100644
--- a/runtime/org.eclipse.etrice.runtime.c/src/common/debugging/etConsoleLogger.c
+++ b/runtime/org.eclipse.etrice.runtime.c/src/common/debugging/etConsoleLogger.c
@@ -35,7 +35,7 @@
 }
 
 void etConsoleSender_sendBuffer(etBufferSender* self, void* buffer, size_t size) {
-	fprintf(stdout, buffer);
+	fprintf(stdout, "%s", (char*) buffer);
 	fflush(stdout);
 }
 
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/debugging/etLogger.c b/runtime/org.eclipse.etrice.runtime.c/src/common/debugging/etLogger.c
index ceee150..329ba94 100644
--- a/runtime/org.eclipse.etrice.runtime.c/src/common/debugging/etLogger.c
+++ b/runtime/org.eclipse.etrice.runtime.c/src/common/debugging/etLogger.c
@@ -12,12 +12,12 @@
  *
  *******************************************************************************/
 
-#include "debugging/etLogger.h"
-#include "osal/etTime.h"
-
 #include <stdarg.h>
 #include <string.h>
 
+#include "debugging/etLogger.h"
+#include "osal/etTime.h"
+
 static char* prefixes[] = {
 		"E: ",
 		"W: ",
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/common/runtime/etRuntime.c b/runtime/org.eclipse.etrice.runtime.c/src/common/runtime/etRuntime.c
index 432e31f..5b5915e 100644
--- a/runtime/org.eclipse.etrice.runtime.c/src/common/runtime/etRuntime.c
+++ b/runtime/org.eclipse.etrice.runtime.c/src/common/runtime/etRuntime.c
@@ -12,6 +12,8 @@
  *
  *******************************************************************************/
 
+#include <stdlib.h>
+#include <string.h>
 
 #include "runtime/etRuntime.h"
 #include "debugging/etMSCLogger.h"
diff --git a/runtime/org.eclipse.etrice.runtime.c/src/platforms/MT_POSIX_GENERIC_GCC/etDatatypes.h b/runtime/org.eclipse.etrice.runtime.c/src/platforms/MT_POSIX_GENERIC_GCC/etDatatypes.h
index 8e17875..7e72f42 100644
--- a/runtime/org.eclipse.etrice.runtime.c/src/platforms/MT_POSIX_GENERIC_GCC/etDatatypes.h
+++ b/runtime/org.eclipse.etrice.runtime.c/src/platforms/MT_POSIX_GENERIC_GCC/etDatatypes.h
@@ -31,6 +31,7 @@
 #include <unistd.h>
 #include <signal.h>
 #if __GNUC__ <= 4
+	/* in newer versions this header isn't needed explicitly */
 	#include <bits/siginfo.h>
 #endif
 #include <time.h>