Skip to content

Commit

Permalink
Handle NetBSD like macOS for timestamp precision.
Browse files Browse the repository at this point in the history
  • Loading branch information
0-wiz-0 committed Apr 15, 2021
1 parent ffb744a commit 814b724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libgrive/src/util/OS.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void Stat( const std::string& filename, DateTime *t, off64_t *size, FileType *ft

if ( t )
{
#if defined __APPLE__ && defined __DARWIN_64_BIT_INO_T
#if defined __NetBSD__ || ( defined __APPLE__ && defined __DARWIN_64_BIT_INO_T )
*t = DateTime( s.st_ctimespec.tv_sec, s.st_ctimespec.tv_nsec ) ;
#else
*t = DateTime( s.st_ctim.tv_sec, s.st_ctim.tv_nsec);
Expand Down

0 comments on commit 814b724

Please sign in to comment.