Skip to content

Commit c7e59d6

Browse files
Merge branch 'main' into ulTaskGetRunTimeCounter
2 parents 64b3f74 + d10ee46 commit c7e59d6

File tree

1 file changed

+2
-2
lines changed
  • portable/ThirdParty/GCC/Posix

1 file changed

+2
-2
lines changed

portable/ThirdParty/GCC/Posix/port.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@ BaseType_t xPortStartScheduler( void )
303303
memset( ( void * ) &hSigSetupThread.__opaque, 0, sizeof( hSigSetupThread.__opaque ) );
304304
memset( ( void * ) &hThreadKeyOnce.__opaque, 0, sizeof( hThreadKeyOnce.__opaque ) );
305305
#else /* Linux PTHREAD library*/
306-
hSigSetupThread = PTHREAD_ONCE_INIT;
307-
hThreadKeyOnce = PTHREAD_ONCE_INIT;
306+
hSigSetupThread = ( pthread_once_t ) PTHREAD_ONCE_INIT;
307+
hThreadKeyOnce = ( pthread_once_t ) PTHREAD_ONCE_INIT;
308308
#endif /* __APPLE__*/
309309

310310
/* Restore original signal mask. */

0 commit comments

Comments
 (0)