Skip to content

Commit

Permalink
Fix FreeRDP#4592: xfreerdp can not built with WITH_POSIX_TIMER on __sun
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiri Sasek authored and Jiri Sasek committed Aug 7, 2018
1 parent 92c2d83 commit 36b2c39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions winpr/libwinpr/synch/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ static void WaitableTimerSignalHandler(int signum, siginfo_t* siginfo, void* arg

static int InstallWaitableTimerSignalHandler(void)
{
if (!g_WaitableTimerSignalHandlerInstalled)
if (g_WaitableTimerSignalHandlerInstalled == FALSE)
{
struct sigaction action;
sigemptyset(&action.sa_mask);
Expand Down Expand Up @@ -243,7 +243,7 @@ static int InitializeWaitableTimer(WINPR_TIMER* timer)
}
#elif defined(__APPLE__)
#else
WLog_ERR(TAG, "%s: os specific implementation is missing", __FUNCTION__);
WLog_ERR(TAG, "%s: os specific implementation is missing (TIMERFD)", __FUNCTION__);
result = -1;
#endif
}
Expand All @@ -265,7 +265,7 @@ static int InitializeWaitableTimer(WINPR_TIMER* timer)

#elif defined(__APPLE__)
#else
WLog_ERR(TAG, "%s: os specific implementation is missing", __FUNCTION__);
WLog_ERR(TAG, "%s: os specific implementation is missing (POSIX)", __FUNCTION__);
result = -1;
#endif
}
Expand Down Expand Up @@ -407,7 +407,7 @@ BOOL SetWaitableTimer(HANDLE hTimer, const LARGE_INTEGER* lpDueTime, LONG lPerio
timer->pfnCompletionRoutine = pfnCompletionRoutine;
timer->lpArgToCompletionRoutine = lpArgToCompletionRoutine;

if (!timer->bInit)
if (timer->bInit == FALSE)
{
if (InitializeWaitableTimer(timer) < 0)
return FALSE;
Expand Down

0 comments on commit 36b2c39

Please sign in to comment.