Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 33f03a4

Browse files
committed
Fix System.IO.Native shim
The type of src is a const reference, not a const pointer. So use direct member access instead of pointer access. This changes allows to build the shim on FreeBSD.
1 parent 17a9de2 commit 33f03a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Native/System.IO.Native/nativeio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static void ConvertFileStats(const struct stat_& src, FileStats* dst)
2727
dst->StatusChangeTime = src.st_ctime;
2828

2929
#if HAVE_STAT_BIRTHTIME
30-
dst->CreationTime = src->st_birthtime;
30+
dst->CreationTime = src.st_birthtime;
3131
dst->Flags |= FILESTATS_FLAGS_HAS_CREATION_TIME;
3232
#endif
3333
}

0 commit comments

Comments
 (0)