diff options
Diffstat (limited to 'src/errno')
| -rw-r--r-- | src/errno/__errno.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/errno/__errno.c b/src/errno/__errno.c index c4290902..17a9b216 100644 --- a/src/errno/__errno.c +++ b/src/errno/__errno.c @@ -1,6 +1,5 @@ -#if 0 - #include "_perthread.h" +#include "_safety.h" /* This version of __errno() is for single-threaded programs and those compiled @@ -14,8 +13,10 @@ in pthread/__pt_errno.c which uses pthread keys. int *__errno(void) { THREAD_LOCAL int e = 0; + SIGNAL_SAFE(1); return &e; } - -#endif +/* +STDC(0) +*/ |
