From 9ce32cd547b52c733b48f487c8f466d78f21f12f Mon Sep 17 00:00:00 2001 From: drausch <dominik.rausch@rwth-aachen.de> Date: Mon, 30 May 2016 13:40:36 +0200 Subject: [PATCH] added missing include --- .../Concurrency/Imp/VistaPosixThreadEventImp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VistaCoreLibs/VistaInterProcComm/Concurrency/Imp/VistaPosixThreadEventImp.cpp b/VistaCoreLibs/VistaInterProcComm/Concurrency/Imp/VistaPosixThreadEventImp.cpp index e1221b341..328177a19 100644 --- a/VistaCoreLibs/VistaInterProcComm/Concurrency/Imp/VistaPosixThreadEventImp.cpp +++ b/VistaCoreLibs/VistaInterProcComm/Concurrency/Imp/VistaPosixThreadEventImp.cpp @@ -32,6 +32,7 @@ #if defined (LINUX) || defined (DARWIN) #include <sys/ioctl.h> + #include <sys/time.h> #elif defined(SUNOS) || defined(IRIX) #include <sys/types.h> #include <sys/filio.h> @@ -84,7 +85,7 @@ void VistaPosixThreadEventImp::SignalEvent() VistaPosixThreadEventImp* pThis = this; int n = 0; - if(0 <= ioctl(m_fd[PIPE_W],FIONREAD,(char*)&n) && n==0) + if(0 <= ioctl(m_fd[PIPE_W],FIONREAD, reinterpret_cast<char*>(&n)) && n==0) TEMP_FAILURE_RETRY( write(m_fd[PIPE_W], &pThis, sizeof(this)) ); } -- GitLab