From f6f2c5de5b256084d3fce24b209d9ba3bef6677d Mon Sep 17 00:00:00 2001
From: ebensza <bence.janos.szabo@ericsson.com>
Date: Thu, 12 May 2016 14:23:35 +0200
Subject: [PATCH] clang specific define in Runtime.cc

Signed-off-by: ebensza <bence.janos.szabo@ericsson.com>
---
 core/Runtime.cc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/core/Runtime.cc b/core/Runtime.cc
index fd4423e6a..164bc858a 100644
--- a/core/Runtime.cc
+++ b/core/Runtime.cc
@@ -2895,7 +2895,12 @@ void TTCN_Runtime::wait_terminated_processes()
   errno = 0;
   for ( ; ; ) {
     int statuscode;
+#ifdef __clang__
     struct rusage r_usage = {{0,0},{0,0},{0},{0},{0},{0},{0},{0},{0},{0},{0},{0},{0},{0},{0},{0}};
+#else
+    struct rusage r_usage = {{0,0},{0,0},0,0,0,0,0,0,0,0,0,0,0,0,0,0};
+#endif
+
 #ifdef INTERIX
     pid_t child_pid = waitpid(-1, &statuscode, WNOHANG);
     getrusage(RUSAGE_CHILDREN, &r_usage);
-- 
GitLab