aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/electron19/files/patches/chromium-cursed^Uscoped_file.patch
blob: 2e5433f7abcee2e52a743e4c400fb1eee41edf61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- 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"