Fix aarch64 libdroplet compatibility
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
diff -Naur a/core/src/droplet/libdroplet/src/backend/posix/backend.c b/core/src/droplet/libdroplet/src/backend/posix/backend.c
|
||||
--- a/core/src/droplet/libdroplet/src/backend/posix/backend.c 2021-12-21 12:00:49.000000000 +0100
|
||||
+++ b/core/src/droplet/libdroplet/src/backend/posix/backend.c 2022-03-10 08:53:14.873899783 +0100
|
||||
@@ -144,7 +144,7 @@
|
||||
goto end;
|
||||
}
|
||||
|
||||
- snprintf(buf, sizeof(buf), "%ld", st.st_nlink);
|
||||
+ snprintf(buf, sizeof(buf), "%"PRIuMAX, (uintmax_t)st.st_nlink);
|
||||
ret2 = dpl_dict_add(metadata, "nlink", buf, 0);
|
||||
if (DPL_SUCCESS != ret2) {
|
||||
ret = ret2;
|
||||
@@ -179,7 +179,7 @@
|
||||
goto end;
|
||||
}
|
||||
|
||||
- snprintf(buf, sizeof(buf), "%lu", st.st_blksize);
|
||||
+ snprintf(buf, sizeof(buf), "%"PRIuMAX, (uintmax_t)st.st_blksize);
|
||||
ret2 = dpl_dict_add(metadata, "blksize", buf, 0);
|
||||
if (DPL_SUCCESS != ret2) {
|
||||
ret = ret2;
|
||||
Reference in New Issue
Block a user