summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-01-02 19:07:56 -0800
committerKhem Raj <raj.khem@gmail.com>2023-01-04 15:33:58 -0800
commit5d304b24af348c7050a590b5ba65a8b154f4084d (patch)
treed50cb02c08f26123adb69ddabfbd0cbabac57825 /meta-networking/recipes-daemons
parent9188812103191e97286afd2cf63656bf3e230d97 (diff)
downloadmeta-openembedded-5d304b24af348c7050a590b5ba65a8b154f4084d.tar.gz
opensaf: Fix the check for __fsblkcnt64_t size
The size on glibc depends on time_t size which is 64bit on newer architectures like rv32 while on musl it is indicated by _FILE_OFFSET_BITS therefore check for both Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-daemons')
-rw-r--r--meta-networking/recipes-daemons/opensaf/opensaf/0001-Use-correct-printf-format-for-__fsblkcnt_t.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-networking/recipes-daemons/opensaf/opensaf/0001-Use-correct-printf-format-for-__fsblkcnt_t.patch b/meta-networking/recipes-daemons/opensaf/opensaf/0001-Use-correct-printf-format-for-__fsblkcnt_t.patch
index d44ceb0d2..7e88c498e 100644
--- a/meta-networking/recipes-daemons/opensaf/opensaf/0001-Use-correct-printf-format-for-__fsblkcnt_t.patch
+++ b/meta-networking/recipes-daemons/opensaf/opensaf/0001-Use-correct-printf-format-for-__fsblkcnt_t.patch
@@ -21,7 +21,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
21 ((statsvfs.f_bfree - 1) * statsvfs.f_frsize)) { 21 ((statsvfs.f_bfree - 1) * statsvfs.f_frsize)) {
22 syslog( 22 syslog(
23 LOG_ERR, 23 LOG_ERR,
24+#if _FILE_OFFSET_BITS == 64 && __WORDSIZE == 32 24+#if (_FILE_OFFSET_BITS == 64 || __TIMESIZE == 64) && __WORDSIZE == 32
25+ "Insufficient shared memory (%lld) to write the data of size: %" PRId64 25+ "Insufficient shared memory (%lld) to write the data of size: %" PRId64
26+#else 26+#else
27 "Insufficient shared memory (%ld) to write the data of size: %" PRId64 27 "Insufficient shared memory (%ld) to write the data of size: %" PRId64