File base-system-nspr.patch of Package nodejs-electron

--- a/base/time/time.cc	2022-06-21 21:52:33.367987695 +0200
+++ b/base/time/time.cc	2022-06-30 13:15:58.619513336 +0200
@@ -21,7 +21,7 @@
 #include "base/check.h"
 #include "base/format_macros.h"
 #include "base/strings/stringprintf.h"
-#include "base/third_party/nspr/prtime.h"
+#include <prtime.h>
 #include "base/time/time_override.h"
 #include "build/build_config.h"
 
--- src/base/BUILD.gn.orig	2024-12-08 18:43:52.881356091 +0100
+++ src/base/BUILD.gn	2024-12-18 13:19:11.049201868 +0100
@@ -1,3 +1,8 @@
+import("//build/config/linux/pkg_config.gni")
+
+pkg_config("system_nspr") {
+  packages = [ "nspr" ]
+}
 # Copyright 2013 The Chromium Authors
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
@@ -809,8 +814,6 @@ component("base") {
     "task/updateable_sequenced_task_runner.h",
     "test/scoped_logging_settings.h",
     "test/spin_wait.h",
-    "third_party/nspr/prtime.cc",
-    "third_party/nspr/prtime.h",
     "thread_annotations.h",
     "threading/hang_watcher.cc",
     "threading/hang_watcher.h",
@@ -1028,6 +1031,7 @@ component("base") {
     "//build/config/compiler:wexit_time_destructors",
     "//build/config/compiler:wglobal_constructors",
     "//electron/build/config:mas_build",
+    ":system_nspr",
   ]
 
   deps = [
openSUSE Build Service is sponsored by