[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT/NEWLIB PATCH 2/2] Add patch to replace CLK_TCK by CLOCKS_PER_SEC
This patch updates the sysconf function by replacing the CLK_TCK macro (which is obsolete) by the CLOCKS_PER_SEC macro. This function is required by SQLite. Signed-off-by: Gaulthier Gain <gaulthier.gain@xxxxxxxxx> --- patches/0009-Use-CLOCKS_PER_SEC-macro.patch | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 patches/0009-Use-CLOCKS_PER_SEC-macro.patch diff --git a/patches/0009-Use-CLOCKS_PER_SEC-macro.patch b/patches/0009-Use-CLOCKS_PER_SEC-macro.patch new file mode 100644 index 0000000..91574e0 --- /dev/null +++ b/patches/0009-Use-CLOCKS_PER_SEC-macro.patch @@ -0,0 +1,28 @@ +From d78d5a50da681be0d55aa50b76aabc4fad75b94b Mon Sep 17 00:00:00 2001 +From: Gaulthier Gain <gaulthier.gain@xxxxxxxxx> +Date: Fri, 15 Nov 2019 18:04:35 +0100 +Subject: [SQLITE] Use CLOCKS_PER_SEC instead of CLK_TCK in sysconf + +CLK_TCK is an obsolete alias of this macro. + +Signed-off-by: Gaulthier Gain <gaulthier.gain@xxxxxxxxx> +--- + newlib/libc/sys/linux/sysconf.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/newlib/libc/sys/linux/sysconf.c b/newlib/libc/sys/linux/sysconf.c +index 037ae54..911bb4b 100644 +--- a/newlib/libc/sys/linux/sysconf.c ++++ b/newlib/libc/sys/linux/sysconf.c +@@ -50,7 +50,7 @@ sysconf (int name) + #endif + + case _SC_CLK_TCK: +- return CLK_TCK; ++ return CLOCKS_PER_SEC; + + case _SC_DELAYTIMER_MAX: + #ifdef DELAYTIMER_MAX +-- +2.11.0 + -- 2.11.0 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |