void-packages/srcpkgs/electron19/files/patches/chromium-cursed^Uscoped_file.patch
Đoàn Trần Công Danh 116661dd4b Revert "electron19: drop package"
Rocket.Chat-Desktop still uses electron19.
electron19 still in the repo.

This reverts commit c4d86008da.
2024-03-31 16:18:02 +07:00

18 lines
373 B
Diff

--- a/base/files/scoped_file_linux.cc.orig
+++ b/base/files/scoped_file_linux.cc
@@ -77,15 +77,3 @@
}
} // namespace base
-
-extern "C" {
-
-int __close(int);
-
-__attribute__((visibility("default"), noinline)) int close(int fd) {
- if (base::IsFDOwned(fd) && g_is_ownership_enforced)
- CrashOnFdOwnershipViolation();
- return __close(fd);
-}
-
-} // extern "C"