Add #if __APPLE__ to lldb workaround

This commit is contained in:
John Boiles 2025-02-10 10:50:37 -08:00
parent a304184654
commit 4bb54a3cdc

View file

@ -288,8 +288,10 @@ BaseType_t xPortStartScheduler( void )
{
sigwait( &xSignals, &iSignal );
/* For some reason, sigwait() doesn't always clear the signal the first time.
* Clear it again if it's still pending.
#if __APPLE__
/* For some reason, on macOS when running in LLDB, sigwait() doesn't
* always clear the signal the first time. Clear it again if it's still
* pending.
*/
sigset_t set;
sigpending( &set );
@ -297,6 +299,7 @@ BaseType_t xPortStartScheduler( void )
{
sigwait( &xSignals, &iSignal );
}
#endif /* __APPLE__ */
}
/*