From 739c65c54cb0e957df5e9b76f93fb02554e5cac3 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 4 May 2022 23:52:30 +0100 Subject: moved everything to new file formatting --- extra/chromium/scoped-file.patch | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 extra/chromium/scoped-file.patch (limited to 'extra/chromium/scoped-file.patch') diff --git a/extra/chromium/scoped-file.patch b/extra/chromium/scoped-file.patch deleted file mode 100644 index 34bf6eb..0000000 --- a/extra/chromium/scoped-file.patch +++ /dev/null @@ -1,31 +0,0 @@ ---- ./base/files/scoped_file_linux.cc.orig -+++ ./base/files/scoped_file_linux.cc -@@ -7,6 +7,7 @@ - #include - #include - #include -+#include - - #include "base/compiler_specific.h" - #include "base/debug/stack_trace.h" -@@ -80,9 +81,18 @@ - - extern "C" { - --int __close(int); -- - __attribute__((visibility("default"), noinline)) int close(int fd) { -+ static int (*__close)(int) = nullptr; -+ -+ if (__close == nullptr) { -+ __close = (int (*)(int))dlsym(RTLD_NEXT, "close"); -+ -+ if (__close == nullptr) { -+ RAW_LOG(ERROR, "musl close not found\n"); -+ IMMEDIATE_CRASH(); -+ } -+ } -+ - if (base::IsFDOwned(fd) && g_is_ownership_enforced) - CrashOnFdOwnershipViolation(); - return __close(fd); -- cgit v1.2.1