summaryrefslogtreecommitdiff
path: root/www/webkitgtk4/patches/patch-Source_WTF_wtf_posix_FileSystemPOSIX_cpp
diff options
context:
space:
mode:
Diffstat (limited to 'www/webkitgtk4/patches/patch-Source_WTF_wtf_posix_FileSystemPOSIX_cpp')
-rw-r--r--www/webkitgtk4/patches/patch-Source_WTF_wtf_posix_FileSystemPOSIX_cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/www/webkitgtk4/patches/patch-Source_WTF_wtf_posix_FileSystemPOSIX_cpp b/www/webkitgtk4/patches/patch-Source_WTF_wtf_posix_FileSystemPOSIX_cpp
new file mode 100644
index 0000000..de29a58
--- /dev/null
+++ b/www/webkitgtk4/patches/patch-Source_WTF_wtf_posix_FileSystemPOSIX_cpp
@@ -0,0 +1,15 @@
1Index: Source/WTF/wtf/posix/FileSystemPOSIX.cpp
2--- Source/WTF/wtf/posix/FileSystemPOSIX.cpp.orig
3+++ Source/WTF/wtf/posix/FileSystemPOSIX.cpp
4@@ -200,7 +200,11 @@ std::optional<WallTime> fileCreationTime(const String&
5 if (stat(fsRep.data(), &fileInfo) == -1)
6 return std::nullopt;
7
8+#if OS(OPENBSD)
9+ return WallTime::fromRawSeconds(fileInfo.__st_birthtime);
10+#else
11 return WallTime::fromRawSeconds(fileInfo.st_birthtime);
12+#endif
13 #endif
14 #endif
15