diff options
Diffstat (limited to 'src/stdio/__toread.c')
| -rw-r--r-- | src/stdio/__toread.c | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/src/stdio/__toread.c b/src/stdio/__toread.c index f00cc467..c2ae80fd 100644 --- a/src/stdio/__toread.c +++ b/src/stdio/__toread.c @@ -12,3 +12,11 @@ int __toread(FILE *f)  	f->rpos = f->rend = f->buf;  	return 0;  } + +static const int dummy = 0; +weak_alias(dummy, __towrite_used); + +void __seek_on_exit() +{ +	if (!__towrite_used) __stdio_exit(); +} | 
