Skip to content
Snippets Groups Projects
Commit 9ce32cd5 authored by drausch's avatar drausch
Browse files

added missing include

parent 7503bc2d
No related branches found
No related tags found
1 merge request!15Feature/clang compile fixes
......@@ -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)) );
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment