summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/feof_unlocked.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/feof_unlocked.c')
-rw-r--r--lib/libc/stdio/feof_unlocked.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdio/feof_unlocked.c b/lib/libc/stdio/feof_unlocked.c
index 4d7d9d53..f6edee58 100644
--- a/lib/libc/stdio/feof_unlocked.c
+++ b/lib/libc/stdio/feof_unlocked.c
@@ -3,5 +3,5 @@
int feof_unlocked(FILE *stream)
{
- return (stream) ? stream->eof : 0;
+ return (stream) ? ((struct __FILE *)stream)->eof : 0;
}