diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-01-22 19:52:23 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-01-22 19:52:23 +0000 |
commit | d64a2e33d6ed31aa61d77861e2d24b70a0b3f177 (patch) | |
tree | a6412e612d61f0656bdd990a41c209e73c3d2207 /user/mdadm/time64.patch | |
parent | 65d8dceefe84e5bf7e0280162e74b4370e1282b5 (diff) | |
download | packages-d64a2e33d6ed31aa61d77861e2d24b70a0b3f177.tar.gz packages-d64a2e33d6ed31aa61d77861e2d24b70a0b3f177.tar.bz2 packages-d64a2e33d6ed31aa61d77861e2d24b70a0b3f177.tar.xz packages-d64a2e33d6ed31aa61d77861e2d24b70a0b3f177.zip |
user/mdadm: Fix build on time64
Diffstat (limited to 'user/mdadm/time64.patch')
-rw-r--r-- | user/mdadm/time64.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/user/mdadm/time64.patch b/user/mdadm/time64.patch new file mode 100644 index 000000000..fd05fcb2f --- /dev/null +++ b/user/mdadm/time64.patch @@ -0,0 +1,19 @@ +--- mdadm-4.1/monitor.c.old 2018-10-01 18:26:06.000000000 +0000 ++++ mdadm-4.1/monitor.c 2020-01-22 19:51:39.575877908 +0000 +@@ -20,6 +20,7 @@ + + #include "mdadm.h" + #include "mdmon.h" ++#include <inttypes.h> + #include <sys/syscall.h> + #include <sys/select.h> + #include <signal.h> +@@ -447,7 +448,7 @@ + } + + gettimeofday(&tv, NULL); +- dprintf("(%d): %ld.%06ld state:%s prev:%s action:%s prev: %s start:%llu\n", ++ dprintf("(%d): %"PRId64".%06"PRId64" state:%s prev:%s action:%s prev: %s start:%llu\n", + a->info.container_member, + tv.tv_sec, tv.tv_usec, + array_states[a->curr_state], |