Skip to content
Snippets Groups Projects
Commit f6f2c5de authored by ebensza's avatar ebensza
Browse files

clang specific define in Runtime.cc


Signed-off-by: default avatarebensza <bence.janos.szabo@ericsson.com>
parent 8cde4dd0
No related branches found
No related tags found
1 merge request!66clang specific define in Runtime.cc
...@@ -2895,7 +2895,12 @@ void TTCN_Runtime::wait_terminated_processes() ...@@ -2895,7 +2895,12 @@ void TTCN_Runtime::wait_terminated_processes()
errno = 0; errno = 0;
for ( ; ; ) { for ( ; ; ) {
int statuscode; 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}}; 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 #ifdef INTERIX
pid_t child_pid = waitpid(-1, &statuscode, WNOHANG); pid_t child_pid = waitpid(-1, &statuscode, WNOHANG);
getrusage(RUSAGE_CHILDREN, &r_usage); getrusage(RUSAGE_CHILDREN, &r_usage);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment