Fix compilation on 32-bit systems

This commit is contained in:
Jeremy Soller
2022-12-02 08:00:36 -07:00
parent 041d1604b5
commit 59b2e32953
6 changed files with 19 additions and 21 deletions
+1 -1
View File
@@ -616,7 +616,7 @@ pub unsafe fn fseek_locked(stream: &mut FILE, mut off: off_t, whence: c_int) ->
/// Seek to a position `pos` in the file from the beginning of the file
#[no_mangle]
pub unsafe extern "C" fn fsetpos(stream: *mut FILE, pos: *const fpos_t) -> c_int {
fseek(stream, *pos, SEEK_SET)
fseeko(stream, *pos, SEEK_SET)
}
/// Get the current position of the cursor in the file