aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ocfs2-tools/musl-o2info-atimensec.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-05-23 21:56:11 +0200
committerJakub Jirutka <jakub@jirutka.cz>2018-05-23 22:18:39 +0200
commit4f24ccb86c8a9d8b73bbcb2d2d4ba4bfceb5c96b (patch)
tree710d95ee14b9815b21685d08b1d60ef864d148fe /testing/ocfs2-tools/musl-o2info-atimensec.patch
parentada13b6998155f1425ec53c9a6ceeac17a5cb7cd (diff)
downloadaports-4f24ccb86c8a9d8b73bbcb2d2d4ba4bfceb5c96b.tar.bz2
aports-4f24ccb86c8a9d8b73bbcb2d2d4ba4bfceb5c96b.tar.xz
testing/ocfs2-tools: rewrite aport and upgrade to 1.8.5
Note: We use the same ("unofficial"?) upstream as Fedora.
Diffstat (limited to 'testing/ocfs2-tools/musl-o2info-atimensec.patch')
-rw-r--r--testing/ocfs2-tools/musl-o2info-atimensec.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/ocfs2-tools/musl-o2info-atimensec.patch b/testing/ocfs2-tools/musl-o2info-atimensec.patch
new file mode 100644
index 0000000000..3e9dcaca3b
--- /dev/null
+++ b/testing/ocfs2-tools/musl-o2info-atimensec.patch
@@ -0,0 +1,35 @@
+From: Jakub Jirutka <jakub@jirutka.cz>
+Date: Wed, 23 May 2018 21:01:00 +0200
+Subject: [PATCH] Ensure compatibility with musl
+
+The musl libc does not define macros st_{atim,mtim,ctim}ensec.
+
+--- a/o2info/utils.c
++++ b/o2info/utils.c
+@@ -334,7 +334,7 @@
+ #else
+ struct timespec t;
+ t.tv_sec = st->st_atime;
+- t.tv_nsec = st->st_atimensec;
++ t.tv_nsec = st->st_atim.tv_nsec;
+ return t;
+ #endif
+ }
+@@ -346,7 +346,7 @@
+ #else
+ struct timespec t;
+ t.tv_sec = st->st_mtime;
+- t.tv_nsec = st->st_mtimensec;
++ t.tv_nsec = st->st_mtim.tv_nsec;
+ return t;
+ #endif
+ }
+@@ -358,7 +358,7 @@
+ #else
+ struct timespec t;
+ t.tv_sec = st->st_ctime;
+- t.tv_nsec = st->st_ctimensec;
++ t.tv_nsec = st->st_ctim.tv_nsec;
+ return t;
+ #endif
+ }