diff options
Diffstat (limited to 'src/stdio/getc_unlocked.c')
| -rw-r--r-- | src/stdio/getc_unlocked.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/stdio/getc_unlocked.c b/src/stdio/getc_unlocked.c index 038e2cf0..140e1a4d 100644 --- a/src/stdio/getc_unlocked.c +++ b/src/stdio/getc_unlocked.c @@ -1,5 +1,3 @@ -#if 0 - #include <stdio.h> #include "_stdio.h" @@ -15,6 +13,8 @@ int getc_unlocked(FILE * stream) { char c = 0; + SIGNAL_SAFE(0); + if (!stream) { return EOF; } @@ -30,6 +30,3 @@ int getc_unlocked(FILE * stream) /* POSIX(199506) */ - - -#endif |
