summaryrefslogtreecommitdiff
path: root/Ports/mrsh/patches/disable-sysctl.patch
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@serenityos.org>2020-02-05 19:53:19 +0300
committerAndreas Kling <kling@serenityos.org>2020-02-05 18:15:15 +0100
commitce567708751875fc6ab7dcb88636b842877198d3 (patch)
treedb6f62dc491435741a49f036c5d7cb8ec1ec7795 /Ports/mrsh/patches/disable-sysctl.patch
parentb3a24d732d22a7ebbb2ded76bc056cd985ae48fe (diff)
downloadserenity-ce567708751875fc6ab7dcb88636b842877198d3.zip
Ports: Add mrsh port
Diffstat (limited to 'Ports/mrsh/patches/disable-sysctl.patch')
-rw-r--r--Ports/mrsh/patches/disable-sysctl.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/Ports/mrsh/patches/disable-sysctl.patch b/Ports/mrsh/patches/disable-sysctl.patch
new file mode 100644
index 0000000000..ec8c9c3364
--- /dev/null
+++ b/Ports/mrsh/patches/disable-sysctl.patch
@@ -0,0 +1,17 @@
+--- a/builtin/times.c 2020-02-03 17:40:26.634489515 +0300
++++ b/builtin/times.c 2020-02-03 17:41:52.351246681 +0300
+@@ -16,11 +16,14 @@
+ }
+
+ struct tms buf;
++/*
+ long clk_tck = sysconf(_SC_CLK_TCK);
+ if (clk_tck == -1) {
+ perror("sysconf");
+ return 1;
+ }
++*/
++ long clk_tck = 1000;
+
+ if (times(&buf) == (clock_t)-1) {
+ perror("times");