Skip to content

Commit

Permalink
Fix undefined macro if glibc headers doesn't match linux headers version
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime Gervais <[email protected]>
  • Loading branch information
g-maxime committed Sep 22, 2024
1 parent 78d1df5 commit c9fe3dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/ZenLib/File.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ Ztring File::Created_Get()
#ifdef ZENLIB_STANDARD
#if defined LINUX && defined STATX_BTIME
struct statx Stat;
int Result=statx(AT_FDCWD, File_Name.To_Local().c_str(), AT_STATX_SYNC_AS_STAT, STATX_BTIME, &Stat);
int Result=statx(AT_FDCWD, File_Name.To_Local().c_str(), 0, STATX_BTIME, &Stat);
if (Result<0)
return __T(""); //Error
Ztring Time; Time.Date_From_Seconds_1970((int64s)Stat.stx_btime.tv_sec);
Expand Down Expand Up @@ -1172,7 +1172,7 @@ Ztring File::Created_Local_Get()
#ifdef ZENLIB_STANDARD
#if defined LINUX && defined STATX_BTIME
struct statx Stat;
int Result=statx(AT_FDCWD, File_Name.To_Local().c_str(), AT_STATX_SYNC_AS_STAT, STATX_BTIME, &Stat);
int Result=statx(AT_FDCWD, File_Name.To_Local().c_str(), 0, STATX_BTIME, &Stat);
if (Result<0)
return __T(""); //Error
Ztring Time; Time.Date_From_Seconds_1970_Local(Stat.stx_btime.tv_sec);
Expand Down

0 comments on commit c9fe3dd

Please sign in to comment.