Skip to content

Commit 8133e64

Browse files
committed
fix: windows: os.[f]stat mixed 64/32 struct/api
os.fstat uses `_fstat64` and Stat is struct _stat64 now
1 parent 9781558 commit 8133e64

File tree

1 file changed

+2
-2
lines changed
  • src/pylib/Lib/os_impl/posix_like

1 file changed

+2
-2
lines changed

src/pylib/Lib/os_impl/posix_like/stat.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ when DWin:
2828

2929
{.push header: "<sys/stat.h>".}
3030
type
31-
Stat{.importc: "struct _stat".} = object
31+
Stat{.importc: "struct _stat64".} = object
3232
st_ino*: Ino
3333
st_mode*: Mode
3434
st_nlink*: Nlink
@@ -40,7 +40,7 @@ when DWin:
4040
st_mtime*: Time64
4141
st_ctime*: Time64
4242
proc wstat(p: WideCString, res: var Stat): cint{.importc: "_wstat64".}
43-
proc fstat(fd: cint, res: var Stat): cint{.importc: "_fstat".}
43+
proc fstat(fd: cint, res: var Stat): cint{.importc: "_fstat64".}
4444
{.pop.}
4545
else:
4646
import std/posix

0 commit comments

Comments
 (0)