mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Revert "Resolve the issue of low version glibc and gcc compilation not being able to be resolved due to the definition of __USE_GNU (#1077)"
This reverts commit e31d0ba097
.
This commit is contained in:
parent
44db556ff5
commit
7cad591f4b
6
portable/ThirdParty/GCC/Posix/port.c
vendored
6
portable/ThirdParty/GCC/Posix/port.c
vendored
|
@ -51,6 +51,9 @@
|
|||
*----------------------------------------------------------*/
|
||||
#include "portmacro.h"
|
||||
|
||||
#ifdef __linux__
|
||||
#define __USE_GNU
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <pthread.h>
|
||||
|
@ -61,7 +64,6 @@
|
|||
#include <string.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/times.h>
|
||||
#include <sys/prctl.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
@ -139,7 +141,7 @@ static void prvPortSetCurrentThreadName(char * pxThreadName)
|
|||
#ifdef __APPLE__
|
||||
pthread_setname_np(pxThreadName);
|
||||
#else
|
||||
prctl( PR_SET_NAME, pxThreadName );
|
||||
pthread_setname_np(pthread_self(), pxThreadName);
|
||||
#endif
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
|
Loading…
Reference in a new issue