1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 03:27:45 +00:00

Ports: Update ninja's patches to use git patches

This commit is contained in:
Ali Mohammad Pur 2022-05-16 19:21:55 +04:30 committed by Ali Mohammad Pur
parent 59156d0f0e
commit e16272eacd
6 changed files with 82 additions and 27 deletions

View file

@ -0,0 +1,31 @@
From e73cf241735cdc4f0a51b25baa1ee12b3c418ac5 Mon Sep 17 00:00:00 2001
From: Nico Weber <thakis@chromium.org>
Date: Sun, 21 Jun 2020 18:41:01 -0400
Subject: [PATCH 2/3] Disable load average calculation
---
src/util.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/util.cc b/src/util.cc
index c76f730..5ec2bb8 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -588,11 +588,14 @@ double GetLoadAverage() {
#else
double GetLoadAverage() {
double loadavg[3] = { 0.0f, 0.0f, 0.0f };
+ /*
+ * FIXME: serenity way of getting loadavg
if (getloadavg(loadavg, 3) < 0) {
// Maybe we should return an error here or the availability of
// getloadavg(3) should be checked when ninja is configured.
return -0.0f;
}
+ */
return loadavg[0];
}
#endif // _WIN32
--
2.36.1