mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-10-10 08:02:57 -04:00
Merge d005c05f1e into 8be86d4a24
This commit is contained in:
commit
87dfd3d310
1 changed files with 2 additions and 2 deletions
4
portable/ThirdParty/GCC/Posix/port.c
vendored
4
portable/ThirdParty/GCC/Posix/port.c
vendored
|
|
@ -54,7 +54,7 @@
|
||||||
* done by adding the following line to ~/.lldbinit:
|
* done by adding the following line to ~/.lldbinit:
|
||||||
* `process handle SIGUSR1 -n true -p false -s false`
|
* `process handle SIGUSR1 -n true -p false -s false`
|
||||||
*----------------------------------------------------------*/
|
*----------------------------------------------------------*/
|
||||||
#ifdef __linux__
|
#if defined(__linux__) && !defined(_GNU_SOURCE)
|
||||||
#define _GNU_SOURCE
|
#define _GNU_SOURCE
|
||||||
#endif
|
#endif
|
||||||
#include "portmacro.h"
|
#include "portmacro.h"
|
||||||
|
|
@ -305,7 +305,7 @@ BaseType_t xPortStartScheduler( void )
|
||||||
|
|
||||||
/* Reset pthread_once_t, needed to restart the scheduler again.
|
/* Reset pthread_once_t, needed to restart the scheduler again.
|
||||||
* memset the internal struct members for MacOS/Linux Compatibility */
|
* memset the internal struct members for MacOS/Linux Compatibility */
|
||||||
#if __APPLE__
|
#ifdef __APPLE__
|
||||||
hSigSetupThread.__sig = _PTHREAD_ONCE_SIG_init;
|
hSigSetupThread.__sig = _PTHREAD_ONCE_SIG_init;
|
||||||
hThreadKeyOnce.__sig = _PTHREAD_ONCE_SIG_init;
|
hThreadKeyOnce.__sig = _PTHREAD_ONCE_SIG_init;
|
||||||
memset( ( void * ) &hSigSetupThread.__opaque, 0, sizeof( hSigSetupThread.__opaque ) );
|
memset( ( void * ) &hSigSetupThread.__opaque, 0, sizeof( hSigSetupThread.__opaque ) );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue