diff options
Diffstat (limited to 'main/openrc/0014-time_t-64bit.patch')
-rw-r--r-- | main/openrc/0014-time_t-64bit.patch | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/main/openrc/0014-time_t-64bit.patch b/main/openrc/0014-time_t-64bit.patch deleted file mode 100644 index dbefcc45bca..00000000000 --- a/main/openrc/0014-time_t-64bit.patch +++ /dev/null @@ -1,30 +0,0 @@ -Since musl 1.2 time_t is a 64 bit value, even on 32 bit systems. A -hotfix for printing the value is simply using PRIu64 from inttypes.h -in the format string. - -diff -upr openrc-0.42.1.orig/src/rc/rc-status.c openrc-0.42.1/src/rc/rc-status.c ---- openrc-0.42.1.orig/src/rc/rc-status.c 2021-01-05 18:59:53.610428019 +0100 -+++ openrc-0.42.1/src/rc/rc-status.c 2021-01-05 19:00:34.967112000 +0100 -@@ -20,6 +20,7 @@ - #include <stdlib.h> - #include <string.h> - #include <unistd.h> -+#include <inttypes.h> - - #include "einfo.h" - #include "queue.h" -@@ -128,12 +129,12 @@ static char *get_uptime(const char *serv - } - if (diff_days > 0) - xasprintf(&uptime, -- "%ld day(s) %02ld:%02ld:%02ld (%s)", -+ "%"PRId64" day(s) %02"PRId64":%02"PRId64":%02"PRId64" (%s)", - diff_days, diff_hours, diff_mins, diff_secs, - start_count); - else - xasprintf(&uptime, -- "%02ld:%02ld:%02ld (%s)", -+ "%02"PRId64":%02"PRId64":%02"PRId64" (%s)", - diff_hours, diff_mins, diff_secs, start_count); - } - } |