diff --git a/src/header/stdio/mod.rs b/src/header/stdio/mod.rs
index 0d4578a8d0d1438d4dd6b1bc78a741c68f7a56db..8af65da051eb212550c5a86b3bc257f55dbe846e 100644
--- a/src/header/stdio/mod.rs
+++ b/src/header/stdio/mod.rs
@@ -61,11 +61,13 @@ pub struct FILE {
     lock: Mutex<()>,
 
     file: File,
+    // pub for stdio_ext
     pub(crate) flags: c_int,
     read_buf: Buffer<'static>,
     read_pos: usize,
     read_size: usize,
     unget: Option<u8>,
+    // pub for stdio_ext
     pub(crate) writer: LineWriter<File>,
 
     // Optional pid for use with popen/pclose