diff options
author | Pekka Seppänen <pexu@sourceware.mail.kapsi.fi> | 2023-08-30 12:16:36 +0300 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-09-11 09:23:05 +0200 |
commit | c2d2bf34e6959615a3ba0edf4153d210501ba04f (patch) | |
tree | 9587bf20c95821127a156d50a2bb62691617d660 /newlib/libc | |
parent | 7a1c717c8bba1d046c37c75c3d8c110aeba3cc09 (diff) | |
download | newlib-c2d2bf34e6959615a3ba0edf4153d210501ba04f.zip newlib-c2d2bf34e6959615a3ba0edf4153d210501ba04f.tar.gz newlib-c2d2bf34e6959615a3ba0edf4153d210501ba04f.tar.bz2 |
Reentrancy, attempt to always provide _Thread_local in <sys/reent.h>
Attempt to always provide _Thread_local in <sys/reent.h> by including
<sys/cdefs.h>. The C specific keyword _Thread_local is not available
unless targetting a suitable C version.
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/include/sys/reent.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/reent.h b/newlib/libc/include/sys/reent.h index a6c923f..a02e7c2 100644 --- a/newlib/libc/include/sys/reent.h +++ b/newlib/libc/include/sys/reent.h @@ -12,6 +12,7 @@ extern "C" { #include <_ansi.h> #include <stddef.h> +#include <sys/cdefs.h> #include <sys/_types.h> #define _NULL 0 |