[3/3] Reentrancy, attempt to always provide _Thread_local in <sys/reent.h>

Message ID 78a10e66535350a46e694ff7484279eb@sourceware.mail.kapsi.fi
State New
Headers
Series Reentrancy |

Commit Message

Pekka Seppänen Aug. 30, 2023, 9:16 a.m. UTC
  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.
---
  newlib/libc/include/sys/reent.h | 1 +
  1 file changed, 1 insertion(+)
  

Patch

diff --git a/newlib/libc/include/sys/reent.h 
b/newlib/libc/include/sys/reent.h
index a6c923f1c..a02e7c2bd 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