summaryrefslogtreecommitdiff
path: root/www/webkitgtk4/patches/patch-Source_WTF_wtf_posix_FileSystemPOSIX_cpp
blob: de29a58429494a33aa42bd583d7c04876a953808 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: Source/WTF/wtf/posix/FileSystemPOSIX.cpp
--- Source/WTF/wtf/posix/FileSystemPOSIX.cpp.orig
+++ Source/WTF/wtf/posix/FileSystemPOSIX.cpp
@@ -200,7 +200,11 @@ std::optional<WallTime> fileCreationTime(const String&
     if (stat(fsRep.data(), &fileInfo) == -1)
         return std::nullopt;
 
+#if OS(OPENBSD)
+    return WallTime::fromRawSeconds(fileInfo.__st_birthtime);
+#else
     return WallTime::fromRawSeconds(fileInfo.st_birthtime);
+#endif
 #endif
 #endif