diff --git a/unittests/APITests/InterruptableConditionVariable.cpp b/unittests/APITests/InterruptableConditionVariable.cpp index 9ac911e33..191d23e99 100644 --- a/unittests/APITests/InterruptableConditionVariable.cpp +++ b/unittests/APITests/InterruptableConditionVariable.cpp @@ -2,6 +2,8 @@ #include #include #include +#include + #include #include @@ -62,7 +64,7 @@ void WaitThreadLongJump( int32_t *TID) { // Store the TID - *TID = ::gettid(); + *TID = FHU::Syscalls::gettid(); // Setup a long jump signal handler struct sigaction sa{}; @@ -106,7 +108,7 @@ TEST_CASE("SignaledWaitLongJumpNoSignal") { // Wait for the thread to signal that it is ready to receive signal WaitMutex.WaitFor(std::chrono::milliseconds(500)); // Send the signal to the thread - tgkill(::getpid(), TID, SIGUSR1); + FHU::Syscalls::tgkill(::getpid(), TID, SIGUSR1); } // Wait for thread join @@ -138,7 +140,7 @@ TEST_CASE("SignaledWaitLongJumpSignal") { WaitMutex.WaitFor(std::chrono::milliseconds(500)); // Send the signal to the thread - tgkill(::getpid(), TID, SIGUSR1); + FHU::Syscalls::tgkill(::getpid(), TID, SIGUSR1); } // Notify the thread's mutex now